protected function createFilesystem(AdapterInterface $adapter, array $config)
    {
        $cache = Arr::pull($config, 'cache');

        $config = Arr::only($config, ['visibility', 'disable_asserts', 'url']);

        if ($cache) {
            $adapter = new CachedAdapter($adapter, $this->createCacheStore($cache));
        }

        return new Filesystem($adapter, count($config) > 0 ? $config : null);
    }
protected function createFilesystem(AdapterInterface $adapter, array $config)
    {
        $cache = Arr::pull($config, 'cache');

        $config = Arr::only($config, ['visibility', 'disable_asserts', 'url']);

        if ($cache) {
            $adapter = new CachedAdapter($adapter, $this->createCacheStore($cache));
        }

        return new Filesystem($adapter, count($config) > 0 ? $config : null);
    }
protected function createFilesystem ( AdapterInterface $ adapter , array $ config ) { $ cache = Arr :: pull ( $ config , 'cache' ) ; $ config = Arr :: only ( $ config , [ 'visibility' , 'disable_asserts' , 'url' ] ) ; if ( $ cache ) { $ adapter = new CachedAdapter ( $ adapter , $ this -> createCacheStore ( $ cache ) ) ; } return new Filesystem ( $ adapter , count ( $ config ) > 0 ? $ config : null ) ; }
Create a Filesystem instance with the given adapter.

@param  \League\Flysystem\AdapterInterface $adapter
@param  array $config
@return \League\Flysystem\FlysystemInterfaceAdapterInterface
Create a Filesystem instance with the given adapter .