$container
$container : \LiftKit\DependencyInjection\Container\Container
Dependency injection container
Abstract Controller Class
This class defines an abstraction for a Controller. A controller acts as the gateway between a Request and a the business logic. A Router will execute a Request to determine which Controller action to take. Controller actions should be public methods which return a valid Response object, acting as the glue for an application.
dispatch(string $method, array $args = array()) : \LiftKit\Response\Response
Dispatches a Controller action.
string | $method | The name of the method to be executed. |
array | $args | An array of arguments to be passed to the method. |
respondsTo(string $method, array $args = array()) : boolean
Will indicate whether the controller responds to a particular combination of method and arguments.
string | $method | The name of the method to be executed. |
array | $args | An array of arguments to be passed to the method. |
true if the controller can respond, false if not