public function getConfig($key)
    {
        if (! $this->getServiceLocator()->has($this->getId().'/'.$key)) {
            return false;
        }

        try{
            $config =  $this->getServiceLocator()->get($this->getId().'/'.$key);
            if ($config instanceof ConfigurationService) {
                $config = $config->getConfig();
            }
        } catch(ServiceNotFoundException $e){
            $config = false;
        }
        return $config;
    }
public function getConfig($key)
    {
        if (! $this->getServiceLocator()->has($this->getId().'/'.$key)) {
            return false;
        }

        try{
            $config =  $this->getServiceLocator()->get($this->getId().'/'.$key);
            if ($config instanceof ConfigurationService) {
                $config = $config->getConfig();
            }
        } catch(ServiceNotFoundException $e){
            $config = false;
        }
        return $config;
    }
public function getConfig ( $ key ) { if ( ! $ this -> getServiceLocator ( ) -> has ( $ this -> getId ( ) . '/' . $ key ) ) { return false ; } try { $ config = $ this -> getServiceLocator ( ) -> get ( $ this -> getId ( ) . '/' . $ key ) ; if ( $ config instanceof ConfigurationService ) { $ config = $ config -> getConfig ( ) ; } } catch ( ServiceNotFoundException $ e ) { $ config = false ; } return $ config ; }
retrieves a configuration value
returns false if not found

@param  string $key
@return mixed
retrieves a configuration value returns false if not found