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