Kernel
class Kernel
Properties
protected EventDispatcher | $dispatcher | ||
protected array |
$apiProviders |
Methods
No description
Parse and execute an API request. Any errors will be converted to normal format.
Determine if a hypothetical API call would be authorized.
Execute an API request.
Bootstrap - Load basic dependencies and sanity-check inputs.
No description
Determine which, if any, service will execute the API request.
Determine if the API request is allowed (under current policy)
Allow third-party code to manipulate the API request before execution.
Allow third-party code to manipulate the API response after execution.
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 57
__construct(EventDispatcher $dispatcher, array $apiProviders = [])
at line 75
array|int
run(string $entity, string $action, array $params, mixed $extra = NULL)
deprecated
deprecated
at line 95
array|int
runSafe(string $entity, string $action, array $params, mixed $extra = NULL)
Parse and execute an API request. Any errors will be converted to normal format.
at line 135
bool
runAuthorize(string $entity, string $action, array $params, mixed $extra = NULL)
Determine if a hypothetical API call would be authorized.
at line 161
array
runRequest(array $apiRequest)
Execute an API request.
The request must be in canonical format. Exceptions will be propagated out.
at line 179
boot(Action|array $apiRequest)
Bootstrap - Load basic dependencies and sanity-check inputs.
at line 205
protected
validate(array $apiRequest)
at line 218
array
resolve(array $apiRequest)
Determine which, if any, service will execute the API request.
at line 237
authorize(ProviderInterface $apiProvider, array $apiRequest)
Determine if the API request is allowed (under current policy)
at line 256
array
prepare(ProviderInterface $apiProvider, array $apiRequest)
Allow third-party code to manipulate the API request before execution.
at line 274
mixed
respond(ProviderInterface $apiProvider, array $apiRequest, array $result)
Allow third-party code to manipulate the API response after execution.