public function __construct(UrlGeneratorInterface $urlGenerator) { $this->urlGenerator = $urlGenerator; }