Exemple #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();
     });
 }
Exemple #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');
 }
Exemple #3
0
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('Eva\\EvaPermission\\Controllers');
 }
Exemple #4
0
 /**
  * Registers the module-only services
  *
  * @param Phalcon\DI $di
  */
 public function registerServices($di)
 {
     $dispatcher = $di->getDispatcher();
     $dispatcher->setDefaultNamespace('VnetWap\\Controllers');
 }
Exemple #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');
 }