public static function createContainer()
    {
        $resolver = new ReferenceResolver();
        
        $builder = new ContainerBuilder($resolver, [self::$appDir]);

        foreach (self::$loaders as $loader) {
            $builder->addLoader($loader);
        }
        $builder->setApplicationRootDirectory(self::$appDir);

        $builder->addConfigFiles(self::$configFiles);

        return $builder->createContainer();
    }
public static function createContainer()
    {
        $resolver = new ReferenceResolver();
        
        $builder = new ContainerBuilder($resolver, [self::$appDir]);

        foreach (self::$loaders as $loader) {
            $builder->addLoader($loader);
        }
        $builder->setApplicationRootDirectory(self::$appDir);

        $builder->addConfigFiles(self::$configFiles);

        return $builder->createContainer();
    }
public static function createContainer ( ) { $ resolver = new ReferenceResolver ( ) ; $ builder = new ContainerBuilder ( $ resolver , [ self :: $ appDir ] ) ; foreach ( self :: $ loaders as $ loader ) { $ builder -> addLoader ( $ loader ) ; } $ builder -> setApplicationRootDirectory ( self :: $ appDir ) ; $ builder -> addConfigFiles ( self :: $ configFiles ) ; return $ builder -> createContainer ( ) ; }
Build a new DI container

@return \Pimple\Container
Build a new DI container