src/App/PacKernel.php
/**
     * Dumps the service container to PHP code in the cache.
     *
     * @param ConfigCache      $cache     The config cache
     * @param ContainerBuilder $container The service container
     * @param string           $class     The name of the class to generate
     * @param string           $baseClass The name of the container's base class
     */
Dumps the service container to PHP code in the cache.
@param ConfigCache      $cache     The config cache
@param ContainerBuilder $container The service container
@param string           $class     The name of the class to generate
@param string           $baseClass The name of the container's base class
Dumps the service container to PHP code in the cache . @param ConfigCache $cache The config cache @param ContainerBuilder $container The service container @param string $class The name of the class to generate @param string $baseClass The name of the container ' s base class
protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container, $class, $baseClass)
    {
        $dumper = new PhpDumper($container);
        if (class_exists('ProxyManager\Configuration') && class_exists('Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper')) {
            $dumper->setProxyDumper(new ProxyDumper(md5($cache->getPath())));
        }
        $content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass, 'file' => $cache->getPath(), 'debug' => $this->debug));
        $cache->write($content, $container->getResources());
    }
protected function dumpContainer ( ConfigCache $ cache , ContainerBuilder $ container , $ class , $ baseClass ) { $ dumper = new PhpDumper ( $ container ) ; if ( class_exists ( 'ProxyManager\Configuration' ) && class_exists ( 'Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper' ) ) { $ dumper -> setProxyDumper ( new ProxyDumper ( md5 ( $ cache -> getPath ( ) ) ) ) ; } $ content = $ dumper -> dump ( array ( 'class' => $ class , 'base_class' => $ baseClass , 'file' => $ cache -> getPath ( ) , 'debug' => $ this -> debug ) ) ; $ cache -> write ( $ content , $ container -> getResources ( ) ) ; }
Dumps the service container to PHP code in the cache.
Dumps the service container to PHP code in the cache .
// cache the container