/** * @return Nette\Application\IRouter */ public function createServiceRouting__router() { $service = App\RouterFactory::createRouter(); if (!$service instanceof Nette\Application\IRouter) { throw new Nette\UnexpectedValueException('Unable to create service \'routing.router\', value returned by factory is not Nette\\Application\\IRouter type.'); } return $service; }
/** * @return Nette\Application\IRouter */ public function createServiceRouting__router() { $service = App\RouterFactory::createRouter(); if (!$service instanceof Nette\Application\IRouter) { throw new Nette\UnexpectedValueException('Unable to create service \'routing.router\', value returned by factory is not Nette\\Application\\IRouter type.'); } Kdyby\Console\CliRouter::prependTo($service, $this->getService('console.router')); return $service; }