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