/** * @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; }
public function getMatches() { return parent::getMatches(); }