예제 #1
0
파일: Restful.php 프로젝트: kennyma/Jolt
 public function isEqual(Route $route)
 {
     return $route instanceof \Jolt\Route\Restful && $this->getRoute() === $route->getRoute() && $this->getResource() === $route->getResource();
 }
예제 #2
0
파일: Named.php 프로젝트: kennyma/Jolt
 public function isEqual(Route $route)
 {
     return $route instanceof \Jolt\Route\Named && $route->getRequestMethod() === $this->getRequestMethod() && $route->getRoute() === $this->getRoute() && $route->getController() === $this->getController() && $route->getAction() === $this->getAction();
 }