Skip to content

Commit 02a7b8c

Browse files
committed
Updated Replication section inside README.md
1 parent 15177a9 commit 02a7b8c

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,21 @@ return [
285285
];
286286
```
287287

288-
### Global visibility settings
288+
### Replication
289289

290-
Configure `fsID` application component as follows
290+
Either run
291+
292+
```bash
293+
$ composer require league/flysystem-replicate-adapter
294+
```
295+
296+
or add
297+
298+
```
299+
"league/flysystem-replicate-adapter": "~1.0"
300+
```
301+
302+
to the `require` section of your `composer.json` file and configure `fsID` application component as follows
291303

292304
```php
293305
return [
@@ -296,15 +308,13 @@ return [
296308
//...
297309
'fsID' => [
298310
//...
299-
'config' => [
300-
'visibility' => \League\Flysystem\AdapterInterface::VISIBILITY_PRIVATE,
301-
],
311+
'replica' => 'anotherFsID',
302312
],
303313
],
304314
];
305315
```
306316

307-
### Replication
317+
### Global visibility settings
308318

309319
Configure `fsID` application component as follows
310320

@@ -315,7 +325,9 @@ return [
315325
//...
316326
'fsID' => [
317327
//...
318-
'replica' => 'anotherFsID',
328+
'config' => [
329+
'visibility' => \League\Flysystem\AdapterInterface::VISIBILITY_PRIVATE,
330+
],
319331
],
320332
],
321333
];

0 commit comments

Comments
 (0)