public function registerScope(ScopeManagerInterface $scope)
	{
		if(isset($this->scopes[$scope->getScope()]))
		{
			throw new DuplicateScopeException(sprintf('Scope "%s" is already registered', $scope->getScope()));
		}
		
		$this->scopes[$scope->getScope()] = $scope;
		
		$scope->correlate($this);
		
		return $scope;
	}
public function registerScope(ScopeManagerInterface $scope)
	{
		if(isset($this->scopes[$scope->getScope()]))
		{
			throw new DuplicateScopeException(sprintf('Scope "%s" is already registered', $scope->getScope()));
		}
		
		$this->scopes[$scope->getScope()] = $scope;
		
		$scope->correlate($this);
		
		return $scope;
	}
public function registerScope ( ScopeManagerInterface $ scope ) { if ( isset ( $ this -> scopes [ $ scope -> getScope ( ) ] ) ) { throw new DuplicateScopeException ( sprintf ( 'Scope "%s" is already registered' , $ scope -> getScope ( ) ) ) ; } $ this -> scopes [ $ scope -> getScope ( ) ] = $ scope ; $ scope -> correlate ( $ this ) ; return $ scope ; }
Register and correalate a scope with this DI container instance.

@param ScopeManagerInterface $scope The scope to be registered.
@return ScopeManagerInterface The registered scope.

@throws DuplicateScopeException When the scope is already registered with the container.
Register and correalate a scope with this DI container instance .