PHP Class ApiPlatform\Core\Hydra\EventListener\AddLinkHeaderListener

Author: Kévin Dunglas ([email protected])
Afficher le fichier Open project: api-platform/core

Méthodes publiques

Méthode Description
__construct ( ApiPlatform\Core\Api\UrlGeneratorInterface $urlGenerator )
onKernelResponse ( FilterResponseEvent $event ) Sends the Hydra header on each response.

Method Details

__construct() public méthode

public __construct ( ApiPlatform\Core\Api\UrlGeneratorInterface $urlGenerator )
$urlGenerator ApiPlatform\Core\Api\UrlGeneratorInterface

onKernelResponse() public méthode

Sends the Hydra header on each response.
public onKernelResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent