NativeQueryHandlerResolver
- Full name:
\Codefy\QueryBus\Resolvers\NativeQueryHandlerResolver - This class implements:
\Codefy\QueryBus\QueryHandlerResolver
Properties
handlers
container
Methods
__construct
public __construct(\Codefy\CommandBus\Container $container = new \Codefy\CommandBus\Containers\NativeContainer()): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$container | \Codefy\CommandBus\Container |
resolve
Retrieve a QueryHandler for a given Command
Parameters:
| Parameter | Type | Description |
|---|---|---|
$query | \Codefy\QueryBus\Query |
Throws:
bindHandler
Bind a handler to a query. These bindings should overrule the default resolution behavior for this resolver.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$queryName | string | |
$handler | callable|string|\Codefy\QueryBus\QueryHandler |
Throws: