2015-02-08 16:29:39 +00:00
|
|
|
<?php
|
|
|
|
|
2015-04-29 15:18:33 +00:00
|
|
|
use \FuzeWorks\Event;
|
|
|
|
|
2015-05-03 20:50:36 +00:00
|
|
|
/**
|
|
|
|
* Class routerRouteEvent
|
|
|
|
*
|
|
|
|
* Fired after the router has extracted the path
|
|
|
|
*
|
2015-08-29 15:43:13 +00:00
|
|
|
* @package net.techfuze.fuzeworks.events
|
2015-05-03 20:50:36 +00:00
|
|
|
*/
|
|
|
|
class routerRouteEvent extends Event{
|
2015-02-08 16:29:39 +00:00
|
|
|
|
2015-05-03 20:50:36 +00:00
|
|
|
/**
|
|
|
|
* @var array The routing table
|
|
|
|
*/
|
|
|
|
public $routes;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var boolean Whether the callable will be loaded directly after or not
|
|
|
|
*/
|
|
|
|
public $loadCallable;
|
2015-02-08 16:29:39 +00:00
|
|
|
|
2015-05-03 20:50:36 +00:00
|
|
|
public function init($routes, $loadCallable){
|
|
|
|
|
|
|
|
$this->routes = $routes;
|
|
|
|
$this->loadCallable = $loadCallable;
|
|
|
|
}
|
|
|
|
}
|