ReflectionProvider
in package
implements
EventSubscriberInterface, ProviderInterface
This class defines operations for inspecting the API's metadata.
Table of Contents
Interfaces
- EventSubscriberInterface
- ProviderInterface
- An API "provider" provides a means to execute API requests.
Properties
- $actions : array<string|int, mixed>
- List of all entities and their supported actions
- $apiKernel : Kernel
Methods
- __construct() : mixed
- getActionNames() : array<string|int, mixed>
- getEntityNames() : array<string|int, mixed>
- getSubscribedEvents() : array<string|int, mixed>
- invoke() : array<string|int, mixed>
- onApiAuthorize() : mixed
- onApiResolve() : mixed
Properties
$actions
List of all entities and their supported actions
private
array<string|int, mixed>
$actions
array(string $entityName => string[] $actionNames).
$apiKernel
private
Kernel
$apiKernel
Methods
__construct()
public
__construct(Kernel $apiKernel) : mixed
Parameters
- $apiKernel : Kernel
-
The API kernel.
getActionNames()
public
getActionNames(int $version, string $entity) : array<string|int, mixed>
Parameters
- $version : int
- $entity : string
Tags
Return values
array<string|int, mixed>getEntityNames()
public
getEntityNames(int $version) : array<string|int, mixed>
Parameters
- $version : int
Tags
Return values
array<string|int, mixed>getSubscribedEvents()
public
static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>invoke()
public
invoke(array<string|int, mixed> $apiRequest) : array<string|int, mixed>
Parameters
- $apiRequest : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>onApiAuthorize()
public
onApiAuthorize(AuthorizeEvent $event) : mixed
Parameters
- $event : AuthorizeEvent
-
API authorization event.
onApiResolve()
public
onApiResolve(ResolveEvent $event) : mixed
Parameters
- $event : ResolveEvent
-
API resolution event.