The abstract AbstractControllerManager class is the blueprint for the MVC's ControllerManager.
The AbstractControllerManager class is the one that needs to be extended
in order to create a LightMVC ControllerManager.
Methods
Initializes this class by assigning the objects contained in the
referenced application object to the corresponding properties.
__construct(\Ascmvc\AbstractApp &$app, string $controllerName, array $vars = array()) : void
abstract
Method that calls the MVC's appropriate request handler.
execute() : void
abstract
Properties
Contains a reference to the Singleton instance of the AbstractApp class.
app : \Ascmvc\AbstractApp|null
Type(s)
\Ascmvc\AbstractApp|null
Contains an associative array of all of the URI's elements.
currentRequestURI : array|null
Contains the name of the AbstractController instance.
controllerName : string
Contains the name of the AbstractController's method.
controllerMethodName : string
Contains a reflection of the AbstractController instance.
controllerReflection : \ReflectionClass
Contains the controller's filename.
controllerFileName : string
Contains a reference to a AbstractController instance.
controller : \Ascmvc\AbstractController|null
Contains a string that is the name of the controller's method that can handle the dispatch.
method : string|null
Array containing the values of the request (SERVER, REQUEST, GET, POST, PUT, PATCH, DELETE).
vars : array|null