|
@@ 57-69 (lines=13) @@
|
| 54 |
|
|
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function put($route, $type, $class, $parameters = array()) { |
| 58 |
|
|
| 59 |
|
$folders = explode("/", $route); |
| 60 |
|
|
| 61 |
|
$regex = $this->parser->read($folders); |
| 62 |
|
|
| 63 |
|
if (!isset($this->routes[$regex])) { |
| 64 |
|
|
| 65 |
|
$this->register($folders, $type, $class, $parameters); |
| 66 |
|
|
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function set($route, $type, $class, $parameters = array()) { |
| 72 |
|
|
|
@@ 71-83 (lines=13) @@
|
| 68 |
|
|
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function set($route, $type, $class, $parameters = array()) { |
| 72 |
|
|
| 73 |
|
$folders = explode("/", $route); |
| 74 |
|
|
| 75 |
|
$regex = $this->parser->read($folders); |
| 76 |
|
|
| 77 |
|
if (isset($this->routes[$regex])) { |
| 78 |
|
|
| 79 |
|
$this->register($folders, $type, $class, $parameters); |
| 80 |
|
|
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
public function add($route, $type, $class, $parameters = array()) { |
| 86 |
|
|