Class ConsoleRouterDelegatorFactory

Summary

Fully Qualified Name: Laminas\Mvc\Console\Router\ConsoleRouterDelegatorFactory
Implements: DelegatorFactoryInterface

Description

Delegator factory for the Router service.

If a console environment is detected, returns the ConsoleRouter service instead of the default router.

Methods

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

Method Details

__invoke()

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

Returns: \Laminas\Mvc\Router\RouteStackInterface

createDelegatorWithName()

laminas-servicemanager v2 compatibility.

Proxies to __invoke().

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

Returns: \Laminas\Mvc\Router\RouteStackInterface

Top