protected function create_dumped_url_generator()
{
try {
$cache = new ConfigCache("{$this->phpbb_root_path}cache/{$this->environment}/url_generator.{$this->php_ext}", defined('DEBUG'));
if (!$cache->isFresh()) {
$dumper = new PhpGeneratorDumper($this->get_routes());
$options = array('class' => 'phpbb_url_generator', 'base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator');
$cache->write($dumper->dump($options), $this->get_routes()->getResources());
}
require_once $cache->getPath();
$this->generator = new \phpbb_url_generator($this->context);
} catch (IOException $e) {
$this->create_new_url_generator();
}
}