Beispiel #1
0
 public function getServiceConfig()
 {
     $default = array('factories' => array('Db\\Radius' => function ($sm) {
         return $sm->get('radius_prod');
     }, 'Db\\Webservice' => function ($sm) {
         return $sm->get('webserver_prod');
     }), 'initializers' => array('ObjectHelper' => function ($service, $sm) {
         // inject service manager  only when controllerManager get call
         if ($service instanceof \Zend\Mvc\Controller\ControllerManager) {
             \Lib\ServiceManager::setServiceManager($sm);
         }
     }));
     $init = array();
     //return array_merge($default, $this->getOpenvpnConfig());
     return array_merge_recursive($default, $this->getRadiusConfig(), $this->getOpenvpnConfig());
 }