public function initRendering()
    {
        $this
            ->register(new Provider\TwigServiceProvider())
            ->register(new Provider\RenderServiceProvider())
            ->register(new Silex\Provider\HttpCacheServiceProvider())
        ;
        $this['http_cache.cache_dir'] = function () {
            return $this['path_resolver']->resolve('%cache%/' . $this['environment'] . '/http');
        };
        $this['http_cache.options'] = function () {
            return $this['config']->get('general/performance/http_cache/options', []);
        };
    }
public function initRendering()
    {
        $this
            ->register(new Provider\TwigServiceProvider())
            ->register(new Provider\RenderServiceProvider())
            ->register(new Silex\Provider\HttpCacheServiceProvider())
        ;
        $this['http_cache.cache_dir'] = function () {
            return $this['path_resolver']->resolve('%cache%/' . $this['environment'] . '/http');
        };
        $this['http_cache.options'] = function () {
            return $this['config']->get('general/performance/http_cache/options', []);
        };
    }
public function initRendering ( ) { $ this -> register ( new Provider \ TwigServiceProvider ( ) ) -> register ( new Provider \ RenderServiceProvider ( ) ) -> register ( new Silex \ Provider \ HttpCacheServiceProvider ( ) ) ; $ this [ 'http_cache.cache_dir' ] = function ( ) { return $ this [ 'path_resolver' ] -> resolve ( '%cache%/' . $ this [ 'environment' ] . '/http' ) ; } ; $ this [ 'http_cache.options' ] = function ( ) { return $ this [ 'config' ] -> get ( 'general/performance/http_cache/options' , [ ] ) ; } ; }
Initialize the rendering providers.
Initialize the rendering providers .