Fully Qualified Name: | Zend\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() | zend-servicemanager v2 compatibility. | ConsoleRequestDelegatorFactory |
Parameter Name | Type | Description |
---|---|---|
$container | \ContainerInterface | |
$name | string | |
$callback | callable | |
$options | null|array |
Returns: \ConsoleRequest|\Zend\Http\Request
zend-servicemanager v2 compatibility.
Proxies to __invoke().
Parameter Name | Type | Description |
---|---|---|
$container | \ServiceLocatorInterface | |
$name | string | |
$requestedName | string | |
$callback | callable |
Returns: \ConsoleRequest|\Zend\Http\Request