/** * * @param $serviceName The name of the service * @param $class A class name that need to be register as service and being parse * * @return Nucleus\IService\Routing\Router */ protected function getRoutingService($serviceName, $class) { return Router::factory(array('imports' => array(__DIR__ . '/../'), 'services' => array($serviceName => array('class' => $class)))); }
/** * * @return Nucleus\Routing\Router */ protected function getRoutingService() { return Router::factory(); }