phpbb\routing\router::create_dumped_url_matcher PHP Method

create_dumped_url_matcher() protected method

Creates a new dumped URL Matcher (dump it if necessary)
    protected function create_dumped_url_matcher()
    {
        try {
            $cache = new ConfigCache("{$this->phpbb_root_path}cache/{$this->environment}/url_matcher.{$this->php_ext}", defined('DEBUG'));
            if (!$cache->isFresh()) {
                $dumper = new PhpMatcherDumper($this->get_routes());
                $options = array('class' => 'phpbb_url_matcher', 'base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher');
                $cache->write($dumper->dump($options), $this->get_routes()->getResources());
            }
            require_once $cache->getPath();
            $this->matcher = new \phpbb_url_matcher($this->context);
        } catch (IOException $e) {
            $this->create_new_url_matcher();
        }
    }