protected function registerFlysystemFactory()
    {
        $this->app->singleton('flysystem.factory', function (Container $app) {
            $adapter = $app['flysystem.adapterfactory'];
            $cache = $app['flysystem.cachefactory'];

            return new FlysystemFactory($adapter, $cache);
        });

        $this->app->alias('flysystem.factory', FlysystemFactory::class);
    }
protected function registerFlysystemFactory()
    {
        $this->app->singleton('flysystem.factory', function (Container $app) {
            $adapter = $app['flysystem.adapterfactory'];
            $cache = $app['flysystem.cachefactory'];

            return new FlysystemFactory($adapter, $cache);
        });

        $this->app->alias('flysystem.factory', FlysystemFactory::class);
    }
protected function registerFlysystemFactory ( ) { $ this -> app -> singleton ( 'flysystem.factory' , function ( Container $ app ) { $ adapter = $ app [ 'flysystem.adapterfactory' ] ; $ cache = $ app [ 'flysystem.cachefactory' ] ; return new FlysystemFactory ( $ adapter , $ cache ) ; } ) ; $ this -> app -> alias ( 'flysystem.factory' , FlysystemFactory :: class ) ; }
Register the flysystem factory class.

@return void
Register the flysystem factory class .