You are here

public function DynamicRouter::getGenerator in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/DynamicRouter.php \Symfony\Cmf\Component\Routing\DynamicRouter::getGenerator()

Return value

UrlGeneratorInterface

File

vendor/symfony-cmf/routing/DynamicRouter.php, line 144

Class

DynamicRouter
A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getGenerator() {
  $this->generator
    ->setContext($this
    ->getContext());
  return $this->generator;
}