public function withGlobalScope( $identifier, $scope )
	{
		$this->scopes[$identifier] = $scope;

		if ( method_exists( $scope, 'extend' ) )
			$scope->extend( $this );

		return $this;
	}
public function withGlobalScope( $identifier, $scope )
	{
		$this->scopes[$identifier] = $scope;

		if ( method_exists( $scope, 'extend' ) )
			$scope->extend( $this );

		return $this;
	}
public function withGlobalScope ( $ identifier , $ scope ) { $ this -> scopes [ $ identifier ] = $ scope ; if ( method_exists ( $ scope , 'extend' ) ) $ scope -> extend ( $ this ) ; return $ this ; }
Register a new global scope.

@param  string $identifier
@param Closure $scope
@return $this
Register a new global scope .