- Renamed to avoid conflicts with other routers.
- Updated documentation.
This commit is contained in:
Simon Sessingø
2015-09-18 20:16:59 +02:00
parent 05a89c368d
commit c9f3cc9329
7 changed files with 92 additions and 26 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace Pecee\Router;
class RouterGroup extends RouterEntry {
public function __construct() {
parent::__construct();
}
public function getRoute($requestMethod, &$url) {
// Check if request method is allowed
if(count($this->requestTypes) === 0 || in_array($requestMethod, $this->requestTypes)) {
return $this;
}
// No match here, move on...
return null;
}
}