Exemplo n.º 1
1
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('Wscn\\Controllers');
     View::registerComponent('post', 'Eva\\EvaBlog\\Components\\Post');
     View::registerComponent('search', 'Eva\\EvaBlog\\Components\\Search');
     $di->set('widget', function () {
         return new Components\Widget();
     });
 }
Exemplo n.º 2
0
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('WscnApiVer1\\Controllers');
     ErrorHandler::setErrorController('Jsonerror');
 }
Exemplo n.º 3
0
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('Eva\\EvaPermission\\Controllers');
 }
Exemplo n.º 4
0
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('VnetWap\\Controllers');
 }
Exemplo n.º 5
0
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('WscnGold\\Controllers');
     View::registerComponent('post', 'Eva\\EvaBlog\\Components\\Post');
 }