PHP Class ApiPlatform\Core\Hydra\EventListener\AddLinkHeaderListener

Author: Kévin Dunglas ([email protected])
ファイルを表示 Open project: api-platform/core

Public Methods

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

Method Details

__construct() public method

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

onKernelResponse() public method

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