Class ConsoleResponseDelegatorFactory

Summary

Fully Qualified Name: Laminas\Mvc\Console\Service\ConsoleResponseDelegatorFactory
Implements: DelegatorFactoryInterface

Description

Delegator factory for the Response service.

If a console environment is detected, returns a ConsoleResponse instead of the default response.

Methods

Name Description Defined By
__invoke() ConsoleResponseDelegatorFactory
createDelegatorWithName() laminas-servicemanager v2 compatibility. ConsoleResponseDelegatorFactory

Method Details

__invoke()

Parameter Name Type Description
$container \ContainerInterface
$name string
$callback callable
$options null|array

Returns: \ConsoleResponse|\Laminas\Http\Response

createDelegatorWithName()

laminas-servicemanager v2 compatibility.

Proxies to __invoke().

Parameter Name Type Description
$container \ServiceLocatorInterface
$name string
$requestedName string
$callback callable

Returns: \ConsoleResponse|\Laminas\Http\Response

Top