phpbb\routing\router::get_generator PHP Method

get_generator() public method

Gets the UrlGenerator instance associated with this Router.
public get_generator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface
return Symfony\Component\Routing\Generator\UrlGeneratorInterface A UrlGeneratorInterface instance
    public function get_generator()
    {
        if ($this->generator !== null) {
            return $this->generator;
        }
        $this->create_dumped_url_generator();
        return $this->generator;
    }

Usage Example

Exemplo n.º 1
0
 public function get_generator()
 {
     $this->create_new_url_generator();
     return parent::get_generator();
 }