CodeExplorer LegacyPhpDumper example
protected function dumpContainer(ConfigCache
$cache, ContainerBuilder
$container,
$class,
$baseClass) { // cache the container
$dumper =
new LegacyPhpDumper($container);
$content =
$dumper->
dump(['class' =>
$class, 'base_class' =>
$baseClass]);
if (!
$this->debug
) { $content = SymfonyKernel::
stripComments($content);
} $cache->
write($content,
$container->
getResources());
$xmlDumper =
new XmlDumper($container);
$xml =
$xmlDumper->
dump(['class' =>
$class, 'base_class' =>
$baseClass]);