@@ 101-112 (lines=12) @@ | ||
98 | ||
99 | } |
|
100 | ||
101 | public function get($route) { |
|
102 | ||
103 | $folders = explode("/", $route); |
|
104 | ||
105 | $regex = $this->parser->read($folders); |
|
106 | ||
107 | if (isset($this->routes[$regex])) |
|
108 | return $this->routes[$regex]; |
|
109 | else |
|
110 | return null; |
|
111 | ||
112 | } |
|
113 | ||
114 | public function remove($route) { |
|
115 | ||
@@ 114-122 (lines=9) @@ | ||
111 | ||
112 | } |
|
113 | ||
114 | public function remove($route) { |
|
115 | ||
116 | $folders = explode("/", $route); |
|
117 | ||
118 | $regex = $this->parser->read($folders); |
|
119 | ||
120 | if (isset($this->routes[$regex])) unset($this->routes[$regex]); |
|
121 | ||
122 | } |
|
123 | ||
124 | public function routes($routes = null) { |
|
125 |