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