protected function Kernel::dumpContainer in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::dumpContainer()
Dumps the service container to PHP code in the cache.
Parameters
ConfigCache $cache The config cache:
ContainerBuilder $container The service container:
string $class The name of the class to generate:
string $baseClass The name of the container's base class:
1 call to Kernel::dumpContainer()
- Kernel::initializeContainer in vendor/
symfony/ http-kernel/ Kernel.php - Initializes the service container.
File
- vendor/
symfony/ http-kernel/ Kernel.php, line 656
Class
- Kernel
- The Kernel is the heart of the Symfony system.
Namespace
Symfony\Component\HttpKernelCode
protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container, $class, $baseClass) {
// cache the container
$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(),
));
if (!$this->debug) {
$content = static::stripComments($content);
}
$cache
->write($content, $container
->getResources());
}