Adds the HTTP Link header pointing to the Hydra documentation.
class ApiPlatform\Hydra\EventListener\AddLinkHeaderListener
{
public __construct(|`<a href="/docs/main/references/Api/UrlGeneratorInterface">ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public onKernelResponse(Symfony\Component\HttpKernel\Event\ResponseEvent $event): null
public isPreflightRequest(Symfony\Component\HttpFoundation\Request $request): bool
}
public __construct(|`<a href="/docs/main/references/Api/UrlGeneratorInterface">ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
urlGenerator | `ApiPlatform\Metadata\UrlGeneratorInterface` `ApiPlatform\Api\UrlGeneratorInterface` |
Sends the Hydra header on each response.
public onKernelResponse(Symfony\Component\HttpKernel\Event\ResponseEvent $event): null
event | Symfony\Component\HttpKernel\Event\ResponseEvent |
null
public isPreflightRequest(Symfony\Component\HttpFoundation\Request $request): bool
request | Symfony\Component\HttpFoundation\Request |
bool
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more