protected function parseScope($value)
    {
        switch ($value) {
            case 'singleton':
                return Configuration::SCOPE_SINGLETON;
            case 'prototype':
                return Configuration::SCOPE_PROTOTYPE;
            case 'session':
                return Configuration::SCOPE_SESSION;
            default:
                throw new InvalidObjectConfigurationException('Invalid scope "' . $value . '"', 1167574991);
        }
    }
protected function parseScope($value)
    {
        switch ($value) {
            case 'singleton':
                return Configuration::SCOPE_SINGLETON;
            case 'prototype':
                return Configuration::SCOPE_PROTOTYPE;
            case 'session':
                return Configuration::SCOPE_SESSION;
            default:
                throw new InvalidObjectConfigurationException('Invalid scope "' . $value . '"', 1167574991);
        }
    }
protected function parseScope ( $ value ) { switch ( $ value ) { case 'singleton' : return Configuration :: SCOPE_SINGLETON ; case 'prototype' : return Configuration :: SCOPE_PROTOTYPE ; case 'session' : return Configuration :: SCOPE_SESSION ; default : throw new InvalidObjectConfigurationException ( 'Invalid scope "' . $ value . '"' , 1167574991 ) ; } }
Parses the value of the option "scope"

@param  string $value Value of the option
@return integer The scope translated into a Configuration::SCOPE_* constant
@throws InvalidObjectConfigurationException if an invalid scope has been specified
Parses the value of the option scope