protected static function addPlugins(FilesystemInterface $filesystem)
    {
        foreach ([
            new EmptyDir(),
            new GetWithMetadata(),
            new ListFiles(),
            new ListPaths(),
            new ListWith(),
        ] as $plugin) {
            $plugin->setFilesystem($filesystem);
            $filesystem->addPlugin($plugin);
        }
        return $filesystem;
    }
protected static function addPlugins(FilesystemInterface $filesystem)
    {
        foreach ([
            new EmptyDir(),
            new GetWithMetadata(),
            new ListFiles(),
            new ListPaths(),
            new ListWith(),
        ] as $plugin) {
            $plugin->setFilesystem($filesystem);
            $filesystem->addPlugin($plugin);
        }
        return $filesystem;
    }
protected static function addPlugins ( FilesystemInterface $ filesystem ) { foreach ( [ new EmptyDir ( ) , new GetWithMetadata ( ) , new ListFiles ( ) , new ListPaths ( ) , new ListWith ( ) , ] as $ plugin ) { $ plugin -> setFilesystem ( $ filesystem ) ; $ filesystem -> addPlugin ( $ plugin ) ; } return $ filesystem ; }
Add default plugins to filesystem

@param FilesystemInterface $filesystem The filesystem.

@return FilesystemInterface
Add default plugins to filesystem