FastRouter

Extends \Ascmvc\AbstractRouter

Class FastRouter

The FastRouter class extends the AbstractRouter class and uses the nikic/fast-route library.

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
inherited abstract

Arguments

Get the current request URI

getRequestURI() : array|null
inherited abstract

Response

array|null

This method tries to find a handler that corresponds to the requested route.

resolve() 

Properties

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

app : \Ascmvc\AbstractApp|null
inherited
var

Type(s)

\Ascmvc\AbstractApp|null

Array contains all of the app's basic configurations.

baseConfig : array|null
inherited
var

Type(s)

array|null

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

requestURI : array|null
inherited
var

Type(s)

array|null

Contains an instance of the MVC's AbstractControllerManager.

controllerManager : \Ascmvc\AbstractControllerManager
inherited