From 8752fbe4ee211dba3ec6202fc9df5a42b971db6c Mon Sep 17 00:00:00 2001 From: Bart Brouwer Date: Tue, 12 Dec 2023 13:17:20 +0100 Subject: [PATCH 1/2] Update filesystem_create.md Removed outdated documentation about accessing the filesystem through the MountManager by a prefix. --- doc/filesystem_create.md | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/doc/filesystem_create.md b/doc/filesystem_create.md index 114ad23..f499848 100644 --- a/doc/filesystem_create.md +++ b/doc/filesystem_create.md @@ -74,29 +74,6 @@ class MyService and instead you can automatically inject your filesystems by **providing the exact same type-hint as above**, and replace `acme` with the name of your filesystem. Thanks to the ``ContainerBuilder::registerAliasForArgument()`` method! -## 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 In version 1.x of Flysystem you could provide a cache per each adapter. [The cached adapter was not ported to V2 of Flysystem](https://flysystem.thephpleague.com/docs/upgrade-from-1.x/#miscellaneous-changes). From f2297ad4697d0a3e63d44dd4a01322921e5bfe92 Mon Sep 17 00:00:00 2001 From: Bart Brouwer Date: Mon, 18 Dec 2023 16:19:59 +0100 Subject: [PATCH 2/2] Keep Mount Manager chapter in docs with link about usage to Flysystem docs --- doc/filesystem_create.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/filesystem_create.md b/doc/filesystem_create.md index f499848..42779ba 100644 --- a/doc/filesystem_create.md +++ b/doc/filesystem_create.md @@ -74,6 +74,10 @@ class MyService and instead you can automatically inject your filesystems by **providing the exact same type-hint as above**, and replace `acme` with the name of your filesystem. Thanks to the ``ContainerBuilder::registerAliasForArgument()`` method! +## Use the Mount Manager + +Details on the usage of the MountManager can be found in the [Flysystem documentation](https://flysystem.thephpleague.com/docs/advanced/mount-manager/). + ## Add caching In version 1.x of Flysystem you could provide a cache per each adapter. [The cached adapter was not ported to V2 of Flysystem](https://flysystem.thephpleague.com/docs/upgrade-from-1.x/#miscellaneous-changes).