ContainerControllerResolver
Extends ControllerResolverController resolver which supports creating controllers from a PSR-11 compatible container
Controllers must be registered in the container using their FQCN as a service key
| since |
2.0.0 |
|---|---|
| package |
Joomla Framework |
Methods
__construct
Constructor
__construct(\Psr\Container\ContainerInterface container) : mixed
| since |
2.0.0 |
|---|
Arguments
- container
\Psr\Container\ContainerInterfaceThe container to search for controllers in
Response
mixed
instantiateController
Instantiate a controller class
instantiateController(string class) : object
inherited
| since |
2.0.0 |
|---|
Arguments
- class
stringThe class to instantiate
Response
objectController class instance
resolve
Resolve the controller for a route
resolve(\Joomla\Router\ResolvedRoute route) : callable
inherited
| throws |
|
|---|---|
| since |
2.0.0 |
Arguments
- route
\Joomla\Router\ResolvedRouteThe route to resolve the controller for
Response
callable
Properties
container
The container to search for controllers in
| since |
2.0.0 |
|---|
Type(s)
\Psr\Container\ContainerInterface