SlaxWeb Framework
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
SlaxWeb\Bootstrap\Service\RouteCollection Class Reference
Inheritance diagram for SlaxWeb\Bootstrap\Service\RouteCollection:
Inheritance graph
[legend]
Collaboration diagram for SlaxWeb\Bootstrap\Service\RouteCollection:
Collaboration graph
[legend]

Public Member Functions

 register (App $app)
 
 define ()
 

Protected Attributes

 $app = null
 
 $routes = []
 
 $beforeDispatch = ""
 
 $afterDispatch = ""
 

Member Function Documentation

SlaxWeb\Bootstrap\Service\RouteCollection::define ( )
abstract

Define Routes

This method is called when the service is registered, and can be used to add new route definitions to the internal container property.

Returns
void
SlaxWeb\Bootstrap\Service\RouteCollection::register ( App  $app)

Register Service

Method called by the Pimple when registering this service. From here the 'define' method is called, and then the protected property 'routes' is iterated, and all found routes are added to the Route Container. Also exposes the received DIC to the protected property.

Parameters
\Pimple\Container$appDIC
Returns
void

The documentation for this class was generated from the following file: