public function registerService($serviceKey, ConfigurableService $service, $allowOverride = true)
    {
        if ($allowOverride || ! $this->getServiceLocator()->has($serviceKey)) {
            $this->getServiceManager()->register($serviceKey, $service);
        }
    }
public function registerService($serviceKey, ConfigurableService $service, $allowOverride = true)
    {
        if ($allowOverride || ! $this->getServiceLocator()->has($serviceKey)) {
            $this->getServiceManager()->register($serviceKey, $service);
        }
    }
public function registerService ( $ serviceKey , ConfigurableService $ service , $ allowOverride = true ) { if ( $ allowOverride || ! $ this -> getServiceLocator ( ) -> has ( $ serviceKey ) ) { $ this -> getServiceManager ( ) -> register ( $ serviceKey , $ service ) ; } }
Register a service through ServiceManager

@param $serviceKey
@param ConfigurableService $service
@param bool $allowOverride
@throws \common_Exception
Register a service through ServiceManager