[FEATURE] Features and optimisations

- Added where method to RouterRoute to support custom regular expression matches on routes.
- Moved parameters property to RouterRoute class.
- Added IRouteEntry class.
This commit is contained in:
Simon Sessingø
2015-10-14 13:54:53 +02:00
parent 8064b5f536
commit aec1f5f10c
3 changed files with 53 additions and 20 deletions
-18
View File
@@ -18,11 +18,9 @@ abstract class RouterEntry {
protected $settings;
protected $callback;
protected $parameters;
public function __construct() {
$this->settings = array();
$this->parameters = array();
}
protected function loadClass($name) {
@@ -63,22 +61,6 @@ abstract class RouterEntry {
return $this->callback;
}
/**
* @return mixed
*/
public function getParameters(){
return $this->parameters;
}
/**
* @param mixed $parameters
* @return self
*/
public function setParameters($parameters) {
$this->parameters = $parameters;
return $this;
}
/**
* @param string $prefix
* @return self