public function getIterator()
	{
		if($this->shared)
		{
			foreach($this->bindings as $key => $binding)
			{
				if(empty($this->bound[$key]))
				{
					$this->bound[$key] = $this->container->getBound($binding);
				}
			}
			
			return new \ArrayIterator($this->bound);
		}
		
		$bound = [];
		
		foreach($this->bindings as $key => $binding)
		{
			$bound[$key] = $this->container->getBound($binding);
		}
		
		return new \ArrayIterator($bound);
	}
public function getIterator()
	{
		if($this->shared)
		{
			foreach($this->bindings as $key => $binding)
			{
				if(empty($this->bound[$key]))
				{
					$this->bound[$key] = $this->container->getBound($binding);
				}
			}
			
			return new \ArrayIterator($this->bound);
		}
		
		$bound = [];
		
		foreach($this->bindings as $key => $binding)
		{
			$bound[$key] = $this->container->getBound($binding);
		}
		
		return new \ArrayIterator($bound);
	}
public function getIterator ( ) { if ( $ this -> shared ) { foreach ( $ this -> bindings as $ key => $ binding ) { if ( empty ( $ this -> bound [ $ key ] ) ) { $ this -> bound [ $ key ] = $ this -> container -> getBound ( $ binding ) ; } } return new \ ArrayIterator ( $ this -> bound ) ; } $ bound = [ ] ; foreach ( $ this -> bindings as $ key => $ binding ) { $ bound [ $ key ] = $ this -> container -> getBound ( $ binding ) ; } return new \ ArrayIterator ( $ bound ) ; }
Provides an iterator on top of all registered services, obtaining the iterator triggers
loading of ALL registered services from the DI container.

@return \ArrayIterator<string, object>
Provides an iterator on top of all registered services obtaining the iterator triggers loading of ALL registered services from the DI container .