phpbb\di\container_builder::dump_container PHP Method

dump_container() protected method

Dump the container to the disk.
protected dump_container ( Symfony\Component\Config\ConfigCache $cache )
$cache Symfony\Component\Config\ConfigCache The config cache
    protected function dump_container($cache)
    {
        try {
            $dumper = new PhpDumper($this->container);
            $cached_container_dump = $dumper->dump(array('class' => 'phpbb_cache_container', 'base_class' => 'Symfony\\Component\\DependencyInjection\\ContainerBuilder'));
            $cache->write($cached_container_dump, $this->container->getResources());
        } catch (IOException $e) {
            // Don't fail if the cache isn't writeable
        }
    }