/** * @param Container $container to fetch the request in order to determine * whether this is the current menu item * @param UrlGeneratorInterface $generator for the parent class * @param UrlGeneratorInterface $contentRouter to generate routes when * content is set * @param string routeName the name of the route to use. DoctrineRouter * ignores this. */ public function __construct(ContainerInterface $container, UrlGeneratorInterface $generator, UrlGeneratorInterface $contentRouter, $contentKey, $routeName = null) { parent::__construct($generator); $this->contentRouter = $contentRouter; $this->container = $container; $this->contentKey = $contentKey; $this->routeName = $routeName; }
public function __construct(UrlGeneratorInterface $generator, $content_router) { parent::__construct($generator); $this->content_router = $content_router; }