protected function getSettingOrFail(string $key)
    {
        if (!$this->registry->has($key)) {
            throw new UnregisteredSettingException(
                sprintf(
                    'There\'s no setting registered with key `%s`',
                    $key
                    )
            );
        }

        return $this->registry->get($key);
    }
protected function getSettingOrFail(string $key)
    {
        if (!$this->registry->has($key)) {
            throw new UnregisteredSettingException(
                sprintf(
                    'There\'s no setting registered with key `%s`',
                    $key
                    )
            );
        }

        return $this->registry->get($key);
    }
protected function getSettingOrFail ( string $ key ) { if ( ! $ this -> registry -> has ( $ key ) ) { throw new UnregisteredSettingException ( sprintf ( 'There\'s no setting registered with key `%s`' , $ key ) ) ; } return $ this -> registry -> get ( $ key ) ; }
Returns the setting registered with the given key and throws and exception if it doesn't exist

@param string $key

@return \Konekt\Gears\Contracts\Setting
@throws UnregisteredSettingException
Returns the setting registered with the given key and throws and exception if it doesn t exist