AdhocProvider
class AdhocProvider implements EventSubscriberInterface, ProviderInterface
An adhoc provider is useful for creating mock API implementations.
Properties
protected array | $actions | ||
protected string | $entity | ||
protected int | $version |
Methods
static array
getSubscribedEvents()
No description
__construct(int $version, string $entity)
No description
addAction(string $name, string $perm, mixed $callback)
Register a new API.
array
invoke(array $apiRequest)
No description
array
getEntityNames(int $version)
No description
array
getActionNames(int $version, string $entity)
No description
bool
matchesRequest(array $apiRequest)
No description
Details
at line 41
static array
getSubscribedEvents()
at line 76
__construct(int $version, string $entity)
at line 92
AdhocProvider
addAction(string $name, string $perm, mixed $callback)
Register a new API.