public function generateUrlWith(UrlGeneratorInterface $urlGenerator, $referenceType) { return $urlGenerator->generateFromUrlBasedLocation($this); }
/** * {@inheritdoc} */ public function getUrl($name, $host = null, array $vars = [], $rel = true) { $rel = $rel ? $type = Url::RELATIVE_PATH : Url::ABSOLUTE_PATH; return $this->url->generate($name, $vars, $host, $rel); }