|
@@ 42-54 (lines=13) @@
|
| 39 |
|
|
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function put($route, $type, $class, $parameters = array()) { |
| 43 |
|
|
| 44 |
|
$folders = explode("/", $route); |
| 45 |
|
|
| 46 |
|
$regex = $this->readpath($folders); |
| 47 |
|
|
| 48 |
|
if (!isset($this->routes[$regex])) { |
| 49 |
|
|
| 50 |
|
$this->add($folders, $type, $class, $parameters); |
| 51 |
|
|
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
public function set($route, $type, $class, $parameters = array()) { |
| 57 |
|
|
|
@@ 56-68 (lines=13) @@
|
| 53 |
|
|
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
public function set($route, $type, $class, $parameters = array()) { |
| 57 |
|
|
| 58 |
|
$folders = explode("/", $route); |
| 59 |
|
|
| 60 |
|
$regex = $this->readpath($folders); |
| 61 |
|
|
| 62 |
|
if (isset($this->routes[$regex])) { |
| 63 |
|
|
| 64 |
|
$this->add($folders, $type, $class, $parameters); |
| 65 |
|
|
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function get($route) { |
| 71 |
|
|