public function __construct(UrlGeneratorInterface $urlGenerator, bool $debug = false) { $this->urlGenerator = $urlGenerator; $this->debug = $debug; }