/**
  * @param Router\Route $route
  * @return array
  */
 private function collectParams(Router\Route $route)
 {
     $matches = $this->router->getMatches();
     $params = [];
     foreach ($route->getPaths() as $name => $position) {
         if (isset($matches[$position])) {
             $params[$name] = $matches[$position];
         }
     }
     return $params;
 }
Example #2
0
 public function getMatches()
 {
     return parent::getMatches();
 }