\FW\Router\StandardSlimRouter

Router Module Implementation

Uses the Slim framework (http://slimframework.com)

Summary

Methods
Properties
Constants
__construct()
init()
run()
No public properties found
No constants found
loadRouteMapper()
$container
$config
$adapter
$view
$router
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : \FW\View\ViewModule

View module

Type

\FW\View\ViewModule

$router

$router : \Slim\Slim

Slim application instance

Type

\Slim\Slim

Methods

__construct()

__construct(\FW\Utils\Container  $c) 

Classes that inherit from this class cannot override the constructor.

Sets up the injector

Parameters

\FW\Utils\Container $c

The dependency injection container

init()

init() 

{@inheritdoc} Initializes variables, mappes routes, etc.

run()

run() 

Runs the application

This should be run LAST, after all application stuff has been set up.

loadRouteMapper()

loadRouteMapper(string  $class) 

Load the route mapper

Parameters

string $class

Route mapper to use