/**
  * 
  * @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))));
 }
Exemplo n.º 2
0
 /**
  * 
  * @return Nucleus\Routing\Router
  */
 protected function getRoutingService()
 {
     return Router::factory();
 }