src/Resource/EventListener/GenerateSymfonyRouteHrefListener.php
private function fixHref(HrefInterface $routeHref): HrefInterface
    {
        if (!$routeHref instanceof SymfonyRouteHref) {
            return $routeHref;
        }

        $path = $this->urlGenerator->generate(
            $routeHref->getRouteName(),
            $routeHref->getRouteParameters(),
            $routeHref->getReferenceType()
        );

        return new Href(
            $path,
            $routeHref->isTemplated()
        );
    }
private function fixHref(HrefInterface $routeHref): HrefInterface
    {
        if (!$routeHref instanceof SymfonyRouteHref) {
            return $routeHref;
        }

        $path = $this->urlGenerator->generate(
            $routeHref->getRouteName(),
            $routeHref->getRouteParameters(),
            $routeHref->getReferenceType()
        );

        return new Href(
            $path,
            $routeHref->isTemplated()
        );
    }
private function fixHref ( HrefInterface $ routeHref ) : HrefInterface { if ( ! $ routeHref instanceof SymfonyRouteHref ) { return $ routeHref ; } $ path = $ this -> urlGenerator -> generate ( $ routeHref -> getRouteName ( ) , $ routeHref -> getRouteParameters ( ) , $ routeHref -> getReferenceType ( ) ) ; return new Href ( $ path , $ routeHref -> isTemplated ( ) ) ; }
Try to fix href

@param HrefInterface $routeHref

@return HrefInterface
Try to fix href