protected static function registerPlugins($protocol, FilesystemInterface $filesystem)
    {
        $filesystem->addPlugin(new ForcedRename());
        $filesystem->addPlugin(new Mkdir());
        $filesystem->addPlugin(new Rmdir());

        $stat = new Stat(
            static::$config[$protocol]['permissions'],
            static::$config[$protocol]['metadata']
        );

        $filesystem->addPlugin($stat);
        $filesystem->addPlugin(new Touch());
    }
protected static function registerPlugins($protocol, FilesystemInterface $filesystem)
    {
        $filesystem->addPlugin(new ForcedRename());
        $filesystem->addPlugin(new Mkdir());
        $filesystem->addPlugin(new Rmdir());

        $stat = new Stat(
            static::$config[$protocol]['permissions'],
            static::$config[$protocol]['metadata']
        );

        $filesystem->addPlugin($stat);
        $filesystem->addPlugin(new Touch());
    }
protected static function registerPlugins ( $ protocol , FilesystemInterface $ filesystem ) { $ filesystem -> addPlugin ( new ForcedRename ( ) ) ; $ filesystem -> addPlugin ( new Mkdir ( ) ) ; $ filesystem -> addPlugin ( new Rmdir ( ) ) ; $ stat = new Stat ( static :: $ config [ $ protocol ] [ 'permissions' ] , static :: $ config [ $ protocol ] [ 'metadata' ] ) ; $ filesystem -> addPlugin ( $ stat ) ; $ filesystem -> addPlugin ( new Touch ( ) ) ; }
Registers plugins on the filesystem.
@param string $protocol
@param FilesystemInterface $filesystem
Registers plugins on the filesystem .