protected function unbindContext($object, $terminate = true)
	{
		if(!is_object($object))
		{
			throw new \InvalidArgumentException(sprintf('Expecting an object, given %s', gettype($object)));
		}
	
		if($this->context === $object)
		{
			$this->context = NULL;
			$this->proxies = new \SplObjectStorage();
		}
		
		if($terminate && $this->contextualInstances->offsetExists($object))
		{
			unset($this->contextualInstances[$object]);
		}
	}
protected function unbindContext($object, $terminate = true)
	{
		if(!is_object($object))
		{
			throw new \InvalidArgumentException(sprintf('Expecting an object, given %s', gettype($object)));
		}
	
		if($this->context === $object)
		{
			$this->context = NULL;
			$this->proxies = new \SplObjectStorage();
		}
		
		if($terminate && $this->contextualInstances->offsetExists($object))
		{
			unset($this->contextualInstances[$object]);
		}
	}
protected function unbindContext ( $ object , $ terminate = true ) { if ( ! is_object ( $ object ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Expecting an object, given %s' , gettype ( $ object ) ) ) ; } if ( $ this -> context === $ object ) { $ this -> context = NULL ; $ this -> proxies = new \ SplObjectStorage ( ) ; } if ( $ terminate && $ this -> contextualInstances -> offsetExists ( $ object ) ) { unset ( $ this -> contextualInstances [ $ object ] ) ; } }
Unbind scope from the given object, will optionally destroy all contextual instances bound to the object.

@param object $object
@param boolean $terminate Clear all contextual instances?

@throws \InvalidArgumentException
Unbind scope from the given object will optionally destroy all contextual instances bound to the object .