src/Application.php
protected function registerContainerBase()
    {
        // Composer
        $this->singleton('composer', function ($app) {
            return new Composer($app->make('files'), $this->basePath());
        });

        // Config
        $this->singleton('config', function () {
            return new ConfigRepository();
        });

        // Files e Storage
        $this->loadComponent('filesystems', '\Bugotech\Foundation\IO\FilesystemServiceProvider', 'filesystem');

        // Log
        $this->singleton('log', function () {
            return new Logger('netforce', [$this->getMonologHandler()]);
        });

        // Artisan - Console
        $this->register('\Bugotech\Foundation\Console\ConsoleServiceProvider');

        // Cache
        $this->singleton('cache', function () {
            return $this->loadComponent('cache', 'Illuminate\Cache\CacheServiceProvider');
        });
        $this->singleton('cache.store', function () {
            return $this->loadComponent('cache', 'Illuminate\Cache\CacheServiceProvider', 'cache.store');
        });

        // Hash
        $this->register('\Illuminate\Hashing\HashServiceProvider');

        // Encryption
        $this->register('\Illuminate\Encryption\EncryptionServiceProvider');
    }
protected function registerContainerBase()
    {
        // Composer
        $this->singleton('composer', function ($app) {
            return new Composer($app->make('files'), $this->basePath());
        });

        // Config
        $this->singleton('config', function () {
            return new ConfigRepository();
        });

        // Files e Storage
        $this->loadComponent('filesystems', '\Bugotech\Foundation\IO\FilesystemServiceProvider', 'filesystem');

        // Log
        $this->singleton('log', function () {
            return new Logger('netforce', [$this->getMonologHandler()]);
        });

        // Artisan - Console
        $this->register('\Bugotech\Foundation\Console\ConsoleServiceProvider');

        // Cache
        $this->singleton('cache', function () {
            return $this->loadComponent('cache', 'Illuminate\Cache\CacheServiceProvider');
        });
        $this->singleton('cache.store', function () {
            return $this->loadComponent('cache', 'Illuminate\Cache\CacheServiceProvider', 'cache.store');
        });

        // Hash
        $this->register('\Illuminate\Hashing\HashServiceProvider');

        // Encryption
        $this->register('\Illuminate\Encryption\EncryptionServiceProvider');
    }
protected function registerContainerBase ( ) { // Composer $ this -> singleton ( 'composer' , function ( $ app ) { return new Composer ( $ app -> make ( 'files' ) , $ this -> basePath ( ) ) ; } ) ; // Config $ this -> singleton ( 'config' , function ( ) { return new ConfigRepository ( ) ; } ) ; // Files e Storage $ this -> loadComponent ( 'filesystems' , '\Bugotech\Foundation\IO\FilesystemServiceProvider' , 'filesystem' ) ; // Log $ this -> singleton ( 'log' , function ( ) { return new Logger ( 'netforce' , [ $ this -> getMonologHandler ( ) ] ) ; } ) ; // Artisan - Console $ this -> register ( '\Bugotech\Foundation\Console\ConsoleServiceProvider' ) ; // Cache $ this -> singleton ( 'cache' , function ( ) { return $ this -> loadComponent ( 'cache' , 'Illuminate\Cache\CacheServiceProvider' ) ; } ) ; $ this -> singleton ( 'cache.store' , function ( ) { return $ this -> loadComponent ( 'cache' , 'Illuminate\Cache\CacheServiceProvider' , 'cache.store' ) ; } ) ; // Hash $ this -> register ( '\Illuminate\Hashing\HashServiceProvider' ) ; // Encryption $ this -> register ( '\Illuminate\Encryption\EncryptionServiceProvider' ) ; }
Register the core conteiner base structures.

@return void
Register the core conteiner base structures .