public function onRequestEarly(GetResponseEvent $event)
    {
        $validator = $this->app['config.validator'];
        $response = $validator->checks();
        if ($response instanceof Response) {
            $event->setResponse($response);
        }
    }
public function onRequestEarly(GetResponseEvent $event)
    {
        $validator = $this->app['config.validator'];
        $response = $validator->checks();
        if ($response instanceof Response) {
            $event->setResponse($response);
        }
    }
public function onRequestEarly ( GetResponseEvent $ event ) { $ validator = $ this -> app [ 'config.validator' ] ; $ response = $ validator -> checks ( ) ; if ( $ response instanceof Response ) { $ event -> setResponse ( $ response ) ; } }
Early functions.

@param GetResponseEvent $event
Early functions .