FluxBB\Core\FilesystemServiceProvider::register PHP Method

register() public method

Register the service provider.
public register ( ) : void
return void
    public function register()
    {
        $this->app->singleton('files', function () {
            return new Filesystem();
        });
        $this->app->singleton('filesystem', function () {
            $flysystem = new Flysystem(new LocalAdapter($this->app->make('path')));
            return new FilesystemAdapter($flysystem);
        });
        $this->app->alias('filesystem', 'Illuminate\\Contracts\\Filesystem\\Filesystem');
    }
FilesystemServiceProvider