Class ConsoleRequestDelegatorFactory

Summary

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

Description

Delegator factory for the Request service.

If a console environment is detected, returns a ConsoleRequest instead of the default request.

Methods

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

Method Details

__invoke()

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

Returns: \ConsoleRequest|\Laminas\Http\Request

createDelegatorWithName()

laminas-servicemanager v2 compatibility.

Proxies to __invoke().

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

Returns: \ConsoleRequest|\Laminas\Http\Request

Top