Skip to content

Commit

Permalink
Update filesystem_create.md (#289)
Browse files Browse the repository at this point in the history
* Update filesystem_create.md

Removed outdated documentation about accessing the filesystem through the MountManager by a prefix.

* Keep Mount Manager chapter in docs with link about usage to Flysystem docs
  • Loading branch information
bartbrouwer authored Dec 18, 2023
1 parent bc90521 commit fcf49c9
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions doc/filesystem_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,6 @@ replace `acme` with the name of your filesystem. Thanks to the ``ContainerBuilde

## Use the Mount Manager

If you provided a mount prefix, you can also access the filesystem through the [MountManager](https://github.com/thephpleague/flysystem/blob/master/src/MountManager.php).

```yml
oneup_flysystem:
adapters:
myadapter:
local:
location: "%kernel.root_dir%/cache"

filesystems:
myfilesystem:
adapter: myadapter
mount: prefix
```
```php
$filesystem = $container->get('oneup_flysystem.mount_manager')->getFilesystem('prefix');
```

Details on the usage of the MountManager can be found in the [Flysystem documentation](https://flysystem.thephpleague.com/docs/advanced/mount-manager/).

## Add caching
Expand Down

0 comments on commit fcf49c9

Please sign in to comment.