PHP 클래스 ApiPlatform\Core\EventListener\ReadListener

저자: Kévin Dunglas ([email protected])
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ApiPlatform\Core\DataProvider\CollectionDataProviderInterface $collectionDataProvider, ApiPlatform\Core\DataProvider\ItemDataProviderInterface $itemDataProvider )
onKernelRequest ( GetResponseEvent $event ) Calls the data provider and sets the data attribute.

비공개 메소드들

메소드 설명
getCollectionData ( Request $request, array $attributes ) : array | Traversable | ApiPlatform\Core\DataProvider\PaginatorInterface | null Retrieves data for a collection operation.
getItemData ( Request $request, array $attributes ) : object | null Gets data for an item operation.

메소드 상세

__construct() 공개 메소드

public __construct ( ApiPlatform\Core\DataProvider\CollectionDataProviderInterface $collectionDataProvider, ApiPlatform\Core\DataProvider\ItemDataProviderInterface $itemDataProvider )
$collectionDataProvider ApiPlatform\Core\DataProvider\CollectionDataProviderInterface
$itemDataProvider ApiPlatform\Core\DataProvider\ItemDataProviderInterface

onKernelRequest() 공개 메소드

Calls the data provider and sets the data attribute.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent