public function make(array $config, FlysystemManager $manager)
    {
        $adapter = $this->createAdapter($config);

        if (is_array($cache = array_get($config, 'cache', false))) {
            $adapter = new CachedAdapter($adapter, $this->createCache($cache, $manager));
        }

        $options = $this->getOptions($config);

        if (array_get($config, 'eventable', false)) {
            return new EventableFilesystem($adapter, $options);
        }

        return new Filesystem($adapter, $options);
    }
public function make(array $config, FlysystemManager $manager)
    {
        $adapter = $this->createAdapter($config);

        if (is_array($cache = array_get($config, 'cache', false))) {
            $adapter = new CachedAdapter($adapter, $this->createCache($cache, $manager));
        }

        $options = $this->getOptions($config);

        if (array_get($config, 'eventable', false)) {
            return new EventableFilesystem($adapter, $options);
        }

        return new Filesystem($adapter, $options);
    }
public function make ( array $ config , FlysystemManager $ manager ) { $ adapter = $ this -> createAdapter ( $ config ) ; if ( is_array ( $ cache = array_get ( $ config , 'cache' , false ) ) ) { $ adapter = new CachedAdapter ( $ adapter , $ this -> createCache ( $ cache , $ manager ) ) ; } $ options = $ this -> getOptions ( $ config ) ; if ( array_get ( $ config , 'eventable' , false ) ) { return new EventableFilesystem ( $ adapter , $ options ) ; } return new Filesystem ( $ adapter , $ options ) ; }
Make a new flysystem instance.

@param array                                      $config
@param \GrahamCampbell\Flysystem\FlysystemManager $manager

@return \League\Flysystem\FilesystemInterface
Make a new flysystem instance .