ControllerResolver

Implements ControllerResolverInterface

Resolves a controller for the given route.

since

2.0.0

package

Joomla Framework

Methods

instantiateController

Instantiate a controller class

instantiateController(string class) : object
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
throws

\InvalidArgumentException

since

2.0.0

Arguments

route

\Joomla\Router\ResolvedRouteThe route to resolve the controller for

Response

callable