Guides
Tutorials
Adds the HTTP Link header pointing to the Hydra documentation.
class ApiPlatform\Hydra\EventListener\AddLinkHeaderListener
{
public __construct(ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public onKernelResponse(Symfony\Component\HttpKernel\Event\ResponseEvent $event): null
public isPreflightRequest(Symfony\Component\HttpFoundation\Request $request): bool
}
class ApiPlatform\Hydra\EventListener\AddLinkHeaderListener
{
public __construct(ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public onKernelResponse(Symfony\Component\HttpKernel\Event\ResponseEvent $event): null
public isPreflightRequest(Symfony\Component\HttpFoundation\Request $request): bool
}
public __construct(ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public __construct(ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
urlGenerator | ApiPlatform\Api\UrlGeneratorInterface |
Sends the Hydra header on each response.
public onKernelResponse(Symfony\Component\HttpKernel\Event\ResponseEvent $event): null
public onKernelResponse(Symfony\Component\HttpKernel\Event\ResponseEvent $event): null
event | Symfony\Component\HttpKernel\Event\ResponseEvent |
null
public isPreflightRequest(Symfony\Component\HttpFoundation\Request $request): bool
public isPreflightRequest(Symfony\Component\HttpFoundation\Request $request): bool
request | Symfony\Component\HttpFoundation\Request |
bool