From 9e317a1345533eb45a61fa68ec9933dd4a3436c5 Mon Sep 17 00:00:00 2001 From: David Greminger Date: Tue, 8 Aug 2023 08:51:09 +0100 Subject: [PATCH] Revert "supports env variables in configuration (#277)" (#285) --- doc/index.md | 6 ------ src/DependencyInjection/OneupFlysystemExtension.php | 3 --- 2 files changed, 9 deletions(-) diff --git a/doc/index.md b/doc/index.md index d37b071..8e7291c 100644 --- a/doc/index.md +++ b/doc/index.md @@ -67,12 +67,6 @@ oneup_flysystem: # optional - defines the default visibility of directories: `public` or `private` (default) directory_visibility: private - - # example - using environment variable for adapter - my_dynamic_filesystem: - adapter: '%app.filesystem_dynamic.adapter%' - visibility: private - directory_visibility: private ``` There are a bunch of adapters for you to use: diff --git a/src/DependencyInjection/OneupFlysystemExtension.php b/src/DependencyInjection/OneupFlysystemExtension.php index 151e615..394deb4 100644 --- a/src/DependencyInjection/OneupFlysystemExtension.php +++ b/src/DependencyInjection/OneupFlysystemExtension.php @@ -29,9 +29,6 @@ public function load(array $configs, ContainerBuilder $container): void $configuration = new Configuration($adapterFactories); $config = $this->processConfiguration($configuration, $configs); - /** @var array $config */ - $config = $container->resolveEnvPlaceholders($config, true); - $loader->load('adapters.xml'); $loader->load('flysystem.xml');