public function getConfig($key = null, $default = null)
    {

        $configurator = $this->getConfigurator();
        if (null === $key) {
            return $configurator;
        }

        return $configurator->get($key, $default);
    }
public function getConfig($key = null, $default = null)
    {

        $configurator = $this->getConfigurator();
        if (null === $key) {
            return $configurator;
        }

        return $configurator->get($key, $default);
    }
public function getConfig ( $ key = null , $ default = null ) { $ configurator = $ this -> getConfigurator ( ) ; if ( null === $ key ) { return $ configurator ; } return $ configurator -> get ( $ key , $ default ) ; }
Get a config key's value

@param string $key
@param mixed $default

@return mixed
Get a config key s value