/** * Builds a dispatcher based on the routes attached to this collection * * @return \Orno\Route\Dispatcher */ public function getDispatcher() { $dispatcher = new Dispatcher($this->container, $this->routes, $this->getData()); if (!is_null($this->strategy)) { $dispatcher->setStrategy($this->strategy); } return $dispatcher; }