Larabros\Elogram\Container\Builder::createContainer PHP Method

createContainer() public method

Creates and returns a new instance of Container after adding $config to it.
public createContainer ( array $config ) : League\Container\ContainerInterface
$config array
return League\Container\ContainerInterface
    public function createContainer(array $config)
    {
        $container = new Container();
        $container->add('config.raw', $config);
        $this->setContainer($container);
        return $this->getContainer();
    }