AbstractRouter

The AbstractRouter class is the blueprint for the MVC's main router.

The AbstractRouter class is the one that needs to be extended in order to create a LightMVC router.

package

LightMVC/ASCMVC

Methods

Initializes this class by assigning the objects contained in the referenced application object to the corresponding properties.

__construct(\Ascmvc\Mvc\AscmvcEvent $event) : void
abstract

Arguments

Get the current request URI

getRequestURI() : array|null
abstract

Response

array|null

Properties

Contains a reference to the Singleton instance of the AbstractApp class.

app : \Ascmvc\AbstractApp|null
var

Type(s)

\Ascmvc\AbstractApp|null

Array contains all of the app's basic configurations.

baseConfig : array|null
var

Type(s)

array|null

Contains an associative array of all of the URI's elements.

requestURI : array|null
var

Type(s)

array|null

Contains an instance of the MVC's AbstractControllerManager.

controllerManager : \Ascmvc\AbstractControllerManager