\Lobby\AppsRouter

Routing in app

Summary

Methods
Properties
Constants
__construct()
route()
dispatch()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$app
$router
N/A

Properties

$app

$app : \Lobby\App

App object

Type

\Lobby\App

$router

$router : \Klein\Klein

Klein Router object

Type

\Klein\Klein

Methods

__construct()

__construct(\Lobby\App  $App) 

Initialize

Parameters

\Lobby\App $App

App object

route()

route(\Lobby\Apps\[type]  $route, \Lobby\Apps\[type]  $callback) 

Route a URI

Parameters

\Lobby\Apps\[type] $route

Route URI

\Lobby\Apps\[type] $callback

Callback to call when route is matched

dispatch()

dispatch() 

Parse the routes and return response content