public function onRequest(GetResponseEvent $event)
    {
        if (Zone::isBackend($event->getRequest())) {
            $this->setVersionChangeNotice();
        }

        // Twig globals
        $this->setGlobals();

        // Only cache if the config passes checks
        if ($this->app['config']->checkConfig() === false) {
            return;
        }

        // Final thing we do, if we're still standing, is to save our
        // configuration to cache
        if (!$this->app['config']->get('general/caching/config')) {
            return;
        }

        $this->app['config']->cacheConfig();
    }
public function onRequest(GetResponseEvent $event)
    {
        if (Zone::isBackend($event->getRequest())) {
            $this->setVersionChangeNotice();
        }

        // Twig globals
        $this->setGlobals();

        // Only cache if the config passes checks
        if ($this->app['config']->checkConfig() === false) {
            return;
        }

        // Final thing we do, if we're still standing, is to save our
        // configuration to cache
        if (!$this->app['config']->get('general/caching/config')) {
            return;
        }

        $this->app['config']->cacheConfig();
    }
public function onRequest ( GetResponseEvent $ event ) { if ( Zone :: isBackend ( $ event -> getRequest ( ) ) ) { $ this -> setVersionChangeNotice ( ) ; } // Twig globals $ this -> setGlobals ( ) ; // Only cache if the config passes checks if ( $ this -> app [ 'config' ] -> checkConfig ( ) === false ) { return ; } // Final thing we do, if we're still standing, is to save our // configuration to cache if ( ! $ this -> app [ 'config' ] -> get ( 'general/caching/config' ) ) { return ; } $ this -> app [ 'config' ] -> cacheConfig ( ) ; }
Normal functions.

@param GetResponseEvent $event
Normal functions .