protected function loadContainer(array $config = [], $environment = null)
	{
		$this->container = new Container;
		$this->configureContainerInternal();
		$this->configureContainer($this->container, $config, $environment);
		return $this->container->get('instantiator');
	}
protected function loadContainer(array $config = [], $environment = null)
	{
		$this->container = new Container;
		$this->configureContainerInternal();
		$this->configureContainer($this->container, $config, $environment);
		return $this->container->get('instantiator');
	}
protected function loadContainer ( array $ config = [ ] , $ environment = null ) { $ this -> container = new Container ; $ this -> configureContainerInternal ( ) ; $ this -> configureContainer ( $ this -> container , $ config , $ environment ) ; return $ this -> container -> get ( 'instantiator' ) ; }
Setup the Dependency Injection Container

@param array  $config      Optional config array as provided from loadConfig().
@param string $environment Optional indication of the runtime environment.

@return callable A callable that can instantiate instances of classes from the DIC.
Setup the Dependency Injection Container