src/Resource/EventListener/GenerateSymfonyRouteHrefListener.php
private function fixForRelations(RelatedResourceInterface $resource): void
    {
        $relations = $resource->getRelations();

        foreach ($relations as $relation) {
            $routeHref = $relation->getHref();
            $href = $this->fixHref($routeHref);
            $relation->setHref($href);
        }
    }
private function fixForRelations(RelatedResourceInterface $resource): void
    {
        $relations = $resource->getRelations();

        foreach ($relations as $relation) {
            $routeHref = $relation->getHref();
            $href = $this->fixHref($routeHref);
            $relation->setHref($href);
        }
    }
private function fixForRelations ( RelatedResourceInterface $ resource ) : void { $ relations = $ resource -> getRelations ( ) ; foreach ( $ relations as $ relation ) { $ routeHref = $ relation -> getHref ( ) ; $ href = $ this -> fixHref ( $ routeHref ) ; $ relation -> setHref ( $ href ) ; } }
Fix links for relations

@param RelatedResourceInterface $resource
Fix links for relations