Register the driver based filesystem.

@return void
516835
protected function registerFlysystem()
  {
    $this->registerManager();

    $this->app->singleton('filesystem.disk', function ($app) {
      return $app['filesystem']->disk($this->getDefaultDriver());
    });
  }
701428
public function boot()
    {
        if ($this->app instanceof LumenApplication) {
            $this->app->configure('filesystems');
        }

        $this->app->make('filesystem')
                  ->extend('cosv3', function ($app, $config) {
                      $flysystem = new Filesystem(new Adapter($config));
                      $flysystem->addPlugin(new PutRemoteFile());
                      $flysystem->addPlugin(new PutRemoteFileAs());
                      $flysystem->addPlugin(new GetUrl());
                      return $flysystem;
                  });
    }
269835
protected function registerBuilder() : void {
		$this->app->singleton('basset.builder', function($app) {
			return new Builder($app['files'], $app['basset.manifest'], $app['basset.path.build']);
		});

		$this->app->singleton('basset.builder.cleaner', function($app) {
			return new FilesystemCleaner($app['basset'], $app['basset.manifest'], $app['files'], $app['basset.path.build']);
		});
	}
542045
public function register()
    {

        $this->getContainer()->add(Connection::class, function () {
            /** @var Configuration $configuration */
            $configuration = $this->getContainer()->get(Configuration::class);
            return DriverManager::getConnection($configuration->get('plugins.database', []), new \Doctrine\DBAL\Configuration());
        });

        $this->getContainer()->add(EntityManagerInterface::class, function () {
            /** @var Configuration $configuration */
            $configuration = $this->getContainer()->get(Configuration::class);

            return EntityManager::create(
                $configuration->get('plugins.database', []),
                Setup::createAnnotationMetadataConfiguration(
                    [
                        realpath(__DIR__ . DIRECTORY_SEPARATOR . 'Entities')
                    ],
                    $configuration->get('debug', false)
                )
            );
        });
    }
782974
private function registerFileConfig()
    {
        $this->app->singleton('config', function ($app) {
            $loader = $app->make('Concrete\Core\Config\FileLoader');
            $saver = $app->make('Concrete\Core\Config\FileSaver');

            return $app->build('Concrete\Core\Config\Repository\Repository', array($loader, $saver, $app->environment()));
        });
    }
1284277
public function register()
    {
    	// set the main config file
	    $this->mergeConfigFrom(
		    __DIR__ . '/Config/LFM.php', 'laravel_file_manager'
	    );

		// bind the LFMC Facade
	    $this->app->bind('LFMC', function () {
		    return new LFMC;
	    });
        $this->app->bind('FileManager', function () {
            return new Media;
        });
    }
646619
public function register() {
		$this->files = new Filesystem;
		$this->registerMakeCommand();
		$this->registerListCommand();
		$this->registerMigrateCommand();
		$this->registerMigrateAllCommand();
		$this->registerDeleteCommand();
	}
291625
protected function registerDatabaseService(): void
    {
        $this->app->alias('db', \Illuminate\Database\ConnectionResolverInterface::class);
        $this->app->register(\Illuminate\Database\DatabaseServiceProvider::class);

        if (File::exists($this->app->databasePath('seeds'))) {
            collect(File::files($this->app->databasePath('seeds')))->each(
                function ($file) {
                    File::requireOnce($file);
                }
            );
        }
    }
526728
function install()
    {
        $this->createConfigurationDirectory();
        $this->createDriversDirectory();
        $this->createSitesDirectory();
        $this->createExtensionsDirectory();
        $this->createLogDirectory();
        $this->createCertificatesDirectory();
        $this->writeBaseConfiguration();

        $this->files->chown($this->path(), user());
    }
974435
public function register()
    {
        $this->app['events']->listen('doctrine.extensions.booting', function () {
            $registry = $this->app->make('registry');

            foreach ($registry->getManagers() as $manager) {
                $chain = $manager->getConfiguration()->getMetadataDriverImpl();

                if ($this->hasAnnotationReader($chain)) {
                    $this->registerGedmoForAnnotations($chain);
                }

                if ($this->hasFluentDriver($chain)) {
                    $this->registerGedmoForFluent($chain);
                }
            }
        });
    }
580366
public function boot()
    {
        $this->registerPolicies();

        // Dynamically register permissions with Laravel's Gate.
        foreach ($this->getPermissions() as $permission) {
            Gate::define($permission->name, function (User $user) use ($permission) {
                return $user->hasPermission($permission);
            });
        }
    }
776582
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/langmanGUI.php', 'langmanGUI');

        $this->app->singleton(Manager::class, function () {
            return new Manager(
                new Filesystem,
                $this->app['path.lang'],
                [$this->app['path.resources'], $this->app['path']]
            );
        });
    }
432644
public function register()
    {
        $this->registerResources();

        $this->app->singleton('iseed', function($app) {
            return new Iseed;
        });

        $this->app->booting(function() {
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('Iseed', 'Orangehill\Iseed\Facades\Iseed');
        });

        $this->app->singleton('command.iseed', function($app) {
            return new IseedCommand;
        });

        $this->commands('command.iseed');
    }
9101
public function register() {
        $configPath = __DIR__ . '/../config/backup-manager.php';
        $this->mergeConfigFrom($configPath, 'backup-manager');
        $this->registerFilesystemProvider();
        $this->registerDatabaseProvider();
        $this->registerCompressorProvider();
        $this->registerShellProcessor();
        $this->registerArtisanCommands();
    }
782422
protected function registerBootstrap()
    {
        $directory = $this->getBootstrapPath();

        if (! is_dir($directory)) {
            return;
        }

        $files = Finder::create()
            ->files()
            ->name('/^.+\.php$/')
            ->notName('routes.php')
            ->notName('navigation.php')
            ->in($directory)
            ->sort(function (SplFileInfo $a) {
                return $a->getFilename() != 'bootstrap.php';
            });

        foreach ($files as $file) {
            require_once $file;
        }
    }
1207813
public function register()
    {
        if ($this->isLumen() && !$this->app->has('filesystem')) {
            $this->app->singleton('filesystem', function ($app) {
                /** @var \Laravel\Lumen\Application $app */
                return $app->loadComponent(
                    'filesystems',
                    \Illuminate\Filesystem\FilesystemServiceProvider::class,
                    'filesystem'
                );
            });

            $this->app->singleton(
                \Illuminate\Contracts\Filesystem\Factory::class,
                function ($app) {
                    return new \Illuminate\Filesystem\FilesystemManager($app);
                }
            );
        }

        $this->registerFacades();
    }
1114155
protected function registerStorageDriver()
    {
        $driver = config('telescope.driver');

        if (method_exists($this, $method = 'register'.ucfirst($driver).'Driver')) {
            $this->$method();
        }
    }