private function initContainer()
    {
        $dicons = (array)$this->app->config('container.dicon');
        $container = ContainerFactory::create();
        foreach ($dicons as $dicon) {
            $file = $this->app->getLoader()->find($dicon)->first();
            $container->import($file);
        }

        $container->register('framework', $this);
        $container->register('application', $this->app);
        $container->register('loader', $this->app->getLoader());

        $this->setContainer($container);
        $this->app->setContainer($container);

        // callback
        foreach ((array)$this->app->config('container.callback.initialized') as $callback) {
            $callback($container);
        }
    }
private function initContainer()
    {
        $dicons = (array)$this->app->config('container.dicon');
        $container = ContainerFactory::create();
        foreach ($dicons as $dicon) {
            $file = $this->app->getLoader()->find($dicon)->first();
            $container->import($file);
        }

        $container->register('framework', $this);
        $container->register('application', $this->app);
        $container->register('loader', $this->app->getLoader());

        $this->setContainer($container);
        $this->app->setContainer($container);

        // callback
        foreach ((array)$this->app->config('container.callback.initialized') as $callback) {
            $callback($container);
        }
    }
private function initContainer ( ) { $ dicons = ( array ) $ this -> app -> config ( 'container.dicon' ) ; $ container = ContainerFactory :: create ( ) ; foreach ( $ dicons as $ dicon ) { $ file = $ this -> app -> getLoader ( ) -> find ( $ dicon ) -> first ( ) ; $ container -> import ( $ file ) ; } $ container -> register ( 'framework' , $ this ) ; $ container -> register ( 'application' , $ this -> app ) ; $ container -> register ( 'loader' , $ this -> app -> getLoader ( ) ) ; $ this -> setContainer ( $ container ) ; $ this -> app -> setContainer ( $ container ) ; // callback foreach ( ( array ) $ this -> app -> config ( 'container.callback.initialized' ) as $ callback ) { $ callback ( $ container ) ; } }
initialize container.

@access  private
initialize container .