コード例 #1
0
ファイル: Route.php プロジェクト: mystlabs/mistyrouting
 public function __construct($routeName, $rule, $controller, $action)
 {
     $this->routeName = $routeName;
     $this->rule = $rule;
     $this->controller = $controller;
     $this->action = $action;
     $this->parsedRule = RuleParser::parseRule($rule);
 }
コード例 #2
0
 /**
  * @expectedException MistyRouting\Exception\MalformedRuleException
  */
 public function testParseRule_catchAllNotAtTheEnd()
 {
     RuleParser::parseRule('/news/:*/:id');
 }