src/Listeners/RenderValidationsListener.php
/**
     * Handle the event.
     *
     * @param \League\Event\EventInterface $event The event that triggered the listener
     *
     * @return void
     */
Handle the event.
@param \League\Event\EventInterface $event The event that triggered the listener

@return void
Handle the event . @param \ League \ Event \ EventInterface $event The event that triggered the listener @return void
public function handle(EventInterface $event)
    {
        $validations = $this->getLoader()->load();
        if (is_array($validations) && sizeof($validations) > 0) {
            foreach ($this->getRenderer() as $renderer) {
                $renderer->render($validations);
            }
        }
    }
public function handle ( EventInterface $ event ) { $ validations = $ this -> getLoader ( ) -> load ( ) ; if ( is_array ( $ validations ) && sizeof ( $ validations ) > 0 ) { foreach ( $ this -> getRenderer ( ) as $ renderer ) { $ renderer -> render ( $ validations ) ; } } }
Handle the event.
Handle the event .
// load the validations // query whether or not we've validation errors