Skip to content

Commit d0734a4

Browse files
Merge pull request #93 from cleverage/92
#92 - Documentation: use the storage format of league/flysystem-bundle 3.5
2 parents 217f615 + 4824801 commit d0734a4

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Latest
22
------
33

4+
### Changes
5+
* [#92](https://github.com/cleverage/flysystem-process-bundle/issues/92) Documentation: the storages are configured with the format of league/flysystem-bundle 3.5 and later (the adapter being the key of its options), the `adapter` / `options` format being deprecated since flysystem-bundle 3.5; the former format is mentioned for an earlier version.
6+
47
v3.4
58
------
69

‎docs/cookbooks/sftp_import.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,18 @@ parameters:
1515
flysystem:
1616
storages:
1717
local.storage:
18-
adapter: 'local'
19-
options:
18+
local:
2019
directory: '%local.storage.dir%'
2120

2221
remote.storage.incoming:
23-
adapter: 'sftp'
24-
options:
22+
sftp:
2523
host: '%env(string:SFTP_HOST)%'
2624
username: '%env(string:SFTP_USERNAME)%'
2725
password: '%env(string:SFTP_PASSWORD)%'
2826
root: '%env(string:SFTP_ROOT)%/incoming'
2927

3028
remote.storage.archive:
31-
adapter: 'sftp'
32-
options:
29+
sftp:
3330
host: '%env(string:SFTP_HOST)%'
3431
username: '%env(string:SFTP_USERNAME)%'
3532
password: '%env(string:SFTP_PASSWORD)%'

‎docs/index.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,21 @@ The tasks of this bundle work with the Flysystem **storages** configured in `con
4545
flysystem:
4646
storages:
4747
local.storage: # Name of the storage, used in the task options
48-
adapter: 'local'
49-
options:
48+
local:
5049
directory: '%kernel.project_dir%/var/storage/local'
5150

5251
remote.storage:
53-
adapter: 'sftp'
54-
options:
52+
sftp:
5553
host: '%env(string:SFTP_HOST)%'
5654
port: 22
5755
username: '%env(string:SFTP_USERNAME)%'
5856
password: '%env(string:SFTP_PASSWORD)%'
5957
root: '%env(string:SFTP_ROOT)%'
6058
```
6159
60+
This is the format of league/flysystem-bundle 3.5 and later, the adapter being the key of its options. With an
61+
earlier version, use `adapter: 'local'` and `options:` (deprecated since flysystem-bundle 3.5).
62+
6263
Paths used and returned by the tasks are relative to the root of the storage (`directory` or `root` option).
6364
Listings (`file_pattern` options, [ListContentTask](reference/tasks/list_content_task.md)) are not recursive: to work
6465
in a sub-directory, configure a dedicated storage whose root is this directory.

‎docs/troubleshooting.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ passing the service id:
8989
flysystem:
9090
storages:
9191
remote.storage:
92-
adapter: 'sftp'
93-
options:
92+
sftp:
9493
host: '%env(string:SFTP_HOST)%'
9594
port: '%env(int:SFTP_PORT)%'
9695
username: '%env(string:SFTP_USERNAME)%'

0 commit comments

Comments
 (0)