public function getScope($key)
    {
        $scope = ('application' === $key) ? 'APPLICATION_CONFIG' : 'BUNDLE_CONFIG';

        if ($this->application->getContainer()->has('config.configurator')) {
            $scope = $this
                    ->application
                    ->getContainer()
                    ->get('config.configurator')
                    ->getRegistryScope($scope, $this->persistPerContext, $this->persistPerEnvironment)
            ;
        }

        return $scope;
    }
public function getScope($key)
    {
        $scope = ('application' === $key) ? 'APPLICATION_CONFIG' : 'BUNDLE_CONFIG';

        if ($this->application->getContainer()->has('config.configurator')) {
            $scope = $this
                    ->application
                    ->getContainer()
                    ->get('config.configurator')
                    ->getRegistryScope($scope, $this->persistPerContext, $this->persistPerEnvironment)
            ;
        }

        return $scope;
    }
public function getScope ( $ key ) { $ scope = ( 'application' === $ key ) ? 'APPLICATION_CONFIG' : 'BUNDLE_CONFIG' ; if ( $ this -> application -> getContainer ( ) -> has ( 'config.configurator' ) ) { $ scope = $ this -> application -> getContainer ( ) -> get ( 'config.configurator' ) -> getRegistryScope ( $ scope , $ this -> persistPerContext , $ this -> persistPerEnvironment ) ; } return $ scope ; }
Returns the registry scope.

@param  string $key

@return string
Returns the registry scope .