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\ContainerInterface
The container to search for controllers in
Response
mixed
instantiateController
Instantiate a controller class
instantiateController(string class) : object
inherited
since |
2.0.0 |
---|
Arguments
- class
string
The class to instantiate
Response
object
Controller 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\ResolvedRoute
The 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