Fully Qualified Name: | Laminas\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() | laminas-servicemanager v2 compatibility. | ConsoleResponseDelegatorFactory |
Parameter Name | Type | Description |
---|---|---|
$container | \ContainerInterface | |
$name | string | |
$callback | callable | |
$options | null|array |
Returns: \ConsoleResponse|\Laminas\Http\Response
laminas-servicemanager v2 compatibility.
Proxies to __invoke().
Parameter Name | Type | Description |
---|---|---|
$container | \ServiceLocatorInterface | |
$name | string | |
$requestedName | string | |
$callback | callable |
Returns: \ConsoleResponse|\Laminas\Http\Response