src/Controller.php
public function generateUrl($route, array $params = [], $flag = UrlGeneratorInterface::ABSOLUTE_URL) {
        return $this->container['url_generator']->generate($route, $params, $flag);
    }
public function generateUrl($route, array $params = [], $flag = UrlGeneratorInterface::ABSOLUTE_URL) {
        return $this->container['url_generator']->generate($route, $params, $flag);
    }
{@inheritdoc}