11# flysystem-bundle
22
3- [ ![ Build Status] ( https://travis-ci.org/thephpleague/flysystem-bundle.svg?branch=master )] ( https://travis-ci.org/thephpleague/flysystem-bundle )
43[ ![ Packagist Version] ( https://img.shields.io/packagist/v/league/flysystem-bundle.svg?style=flat-square )] ( https://packagist.org/packages/league/flysystem-bundle )
54[ ![ Software license] ( https://img.shields.io/github/license/thephpleague/flysystem-bundle.svg?style=flat-square )] ( https://github.com/thephpleague/flysystem-bundle/blob/master/LICENSE )
65
@@ -12,9 +11,13 @@ library into Symfony applications.
1211It provides an efficient abstraction for the filesystem in order to change the storage backend depending
1312on the execution environment (local files in development, cloud storage in production and memory in tests).
1413
14+ > Note: you are reading the documentation for flysystem-bundle 2.0, which relies on Flysystem 2.X.
15+ > If you use Flysystem 1.X, use [ flysystem-bundle 1.X] ( https://github.com/thephpleague/flysystem-bundle/tree/1.x ) .
16+ > Read the [ Upgrade guide] ( https://github.com/thephpleague/flysystem-bundle/blob/master/UPGRADE.md ) to learn how to upgrade.
17+
1518## Installation
1619
17- flysystem-bundle requires PHP 7.1 + and Symfony 4.2+.
20+ flysystem-bundle requires PHP 7.2 + and Symfony 4.2+.
1821
1922You can install the bundle using Symfony Flex:
2023
@@ -47,19 +50,19 @@ creates a named alias for each of these services.
4750
4851This means you have two way of using the defined storages :
4952
50- * either using autowiring, by typehinting against the `FilesystemInterface ` and using the
53+ * either using autowiring, by typehinting against the `FilesystemOperator ` and using the
5154 variable name matching one of your storages :
5255
5356 ` ` ` php
54- use League\F lysystem\F ilesystemInterface ;
57+ use League\F lysystem\F ilesystemOperator ;
5558
5659 class MyService
5760 {
5861 private $storage;
5962
6063 // The variable name $defaultStorage matters: it needs to be the camelized version
6164 // of the name of your storage.
62- public function __construct(FilesystemInterface $defaultStorage)
65+ public function __construct(FilesystemOperator $defaultStorage)
6366 {
6467 $this->storage = $defaultStorage;
6568 }
@@ -71,13 +74,13 @@ This means you have two way of using the defined storages:
7174 The same goes for controllers :
7275
7376 ` ` ` php
74- use League\F lysystem\F ilesystemInterface ;
77+ use League\F lysystem\F ilesystemOperator ;
7578
7679 class MyController
7780 {
7881 // The variable name $defaultStorage matters: it needs to be the camelized version
7982 // of the name of your storage.
80- public function index(FilesystemInterface $defaultStorage)
83+ public function index(FilesystemOperator $defaultStorage)
8184 {
8285 // ...
8386 }
@@ -87,26 +90,22 @@ This means you have two way of using the defined storages:
8790* or using manual injection, by injecting the service named `default.storage` inside
8891 your services.
8992
90- Once you have a FilesystemInterface , you can call methods from the
91- [Filesystem API](https://flysystem.thephpleague.com/docs/usage/filesystem-api/)
93+ Once you have a FilesystemOperator , you can call methods from the
94+ [Filesystem API](https://flysystem.thephpleague.com/v2/ docs/usage/filesystem-api/)
9295to interact with your storage.
9396
9497# # Full documentation
9598
96991. [Getting started](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md)
971002. Cloud storage providers :
98- [Azure](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#azure),
99101 [AsyncAws S3](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#asyncaws-s3),
100- [AWS S3](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#aws-s3),
101- [DigitalOcean Spaces](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#digitalocean-spaces),
102- [Scaleway Object Storage](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#scaleway-object-storage),
102+ [AWS SDK S3](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#aws-sdk-s3),
103103 [Google Cloud Storage](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#google-cloud-storage),
104- [Rackspace ](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#rackspace ),
105- [WebDAV ](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#webdav )
104+ [DigitalOcean Spaces ](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#digitalocean-spaces ),
105+ [Scaleway Object Storage ](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#scaleway-object-storage )
1061063. [Interacting with FTP and SFTP servers](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/3-interacting-with-ftp-and-sftp-servers.md)
107- 4. [Caching metadata in Symfony cache](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/4-caching-metadata-in-symfony-cache.md)
108- 5. [Using a lazy adapter to switch storage backend using an environment variable](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/5-using-lazy-adapter-to-switch-at-runtime.md)
109- 6. [Creating a custom adapter](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/6-creating-a-custom-adapter.md)
107+ 4. [Using a lazy adapter to switch storage backend using an environment variable](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/4-using-lazy-adapter-to-switch-at-runtime.md)
108+ 5. [Creating a custom adapter](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/5-creating-a-custom-adapter.md)
110109
111110* [Security issue disclosure procedure](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/A-security-disclosure-procedure.md)
112111* [Configuration reference](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/B-configuration-reference.md)
0 commit comments