private function createMatch(Route $route, array $params) { $match = new Match($route, $params); $callback = $route->getCallback(); if ($callback === null) { $callback = $this->configuration->defaultMatchCallback; } if ($callback instanceof DelegateInterface) { $callback->invoke($match); } return $match; }
public function name($name) { $this->route->setName($name); return $this; }