phpbb\routing\router::get_matcher PHP Method

get_matcher() public method

Gets the UrlMatcher instance associated with this Router.
public get_matcher ( ) : Symfony\Component\Routing\Matcher\UrlMatcherInterface
return Symfony\Component\Routing\Matcher\UrlMatcherInterface A UrlMatcherInterface instance
    public function get_matcher()
    {
        if ($this->matcher !== null) {
            return $this->matcher;
        }
        $this->create_dumped_url_matcher();
        return $this->matcher;
    }

Usage Example

Esempio n. 1
0
 public function get_matcher()
 {
     $this->create_new_url_matcher();
     return parent::get_matcher();
 }