Fully Qualified Name: | Laminas\Mvc\Console\Service\ConsoleRequestDelegatorFactory |
Implements: | DelegatorFactoryInterface |
Delegator factory for the Request service.
If a console environment is detected, returns a ConsoleRequest instead of the default request.
Name | Description | Defined By |
---|---|---|
__invoke() | ConsoleRequestDelegatorFactory | |
createDelegatorWithName() | laminas-servicemanager v2 compatibility. | ConsoleRequestDelegatorFactory |
Parameter Name | Type | Description |
---|---|---|
$container | \ContainerInterface | |
$name | string | |
$callback | callable | |
$options | null|array |
Returns: \ConsoleRequest|\Laminas\Http\Request
laminas-servicemanager v2 compatibility.
Proxies to __invoke().
Parameter Name | Type | Description |
---|---|---|
$container | \ServiceLocatorInterface | |
$name | string | |
$requestedName | string | |
$callback | callable |
Returns: \ConsoleRequest|\Laminas\Http\Request