src/Mouf/Interop/Silex/Application.php
public function offsetGet($id)
	{
		if ($this->rootContainer) {
			try {
				return $this->rootContainer->get($id);
			} catch (NotFoundException $ex) {
				// Fallback to pimple if offsetGet fails.
				return $this->pimpleContainer[$id];
			}
		} else {
			return $this->pimpleContainer[$id];
		}
	}
public function offsetGet($id)
	{
		if ($this->rootContainer) {
			try {
				return $this->rootContainer->get($id);
			} catch (NotFoundException $ex) {
				// Fallback to pimple if offsetGet fails.
				return $this->pimpleContainer[$id];
			}
		} else {
			return $this->pimpleContainer[$id];
		}
	}
public function offsetGet ( $ id ) { if ( $ this -> rootContainer ) { try { return $ this -> rootContainer -> get ( $ id ) ; } catch ( NotFoundException $ ex ) { // Fallback to pimple if offsetGet fails. return $ this -> pimpleContainer [ $ id ] ; } } else { return $ this -> pimpleContainer [ $ id ] ; } }
Gets a parameter or an object, first from the root container, then from Pimple if nothing is found in root container.
It is expected that the root container will be a composite container with Pimple being part of it, therefore,
the fallback to Pimple is just here by security.

@param string $id The unique identifier for the parameter or object

@return mixed The value of the parameter or an object

@throws PimpleNotFoundException if the identifier is not defined
Gets a parameter or an object first from the root container then from Pimple if nothing is found in root container . It is expected that the root container will be a composite container with Pimple being part of it therefore the fallback to Pimple is just here by security .