From d71133276a8b1183fa643ee1db34814f1b9ae0ae Mon Sep 17 00:00:00 2001 From: Nattfarinn Date: Wed, 30 Dec 2020 16:15:00 +0100 Subject: [PATCH] EZP-32255: Default IO configuration before applying generic or p.sh --- .../bundle/DependencyInjection/EzPlatformCoreExtension.php | 6 ++++++ .../bundle/Resources/config/default_settings.yaml | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/EzPlatformCoreBundle/bundle/Resources/config/default_settings.yaml diff --git a/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php b/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php index a4a44a1..17ccfc9 100644 --- a/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php +++ b/src/EzPlatformCoreBundle/bundle/DependencyInjection/EzPlatformCoreExtension.php @@ -37,6 +37,12 @@ public function getAlias(): string public function prepend(ContainerBuilder $container): void { + $loader = new Loader\YamlFileLoader( + $container, + new FileLocator(__DIR__ . '/../Resources/config') + ); + $loader->load('default_settings.yaml'); + $this->configureGenericSetup($container); $this->configurePlatformShSetup($container); diff --git a/src/EzPlatformCoreBundle/bundle/Resources/config/default_settings.yaml b/src/EzPlatformCoreBundle/bundle/Resources/config/default_settings.yaml new file mode 100644 index 0000000..bd73124 --- /dev/null +++ b/src/EzPlatformCoreBundle/bundle/Resources/config/default_settings.yaml @@ -0,0 +1,7 @@ +parameters: + ibexa.platform.io.nfs.adapter.config: + root: './' + path: '$var_dir$/$storage_dir$/' + writeFlags: ~ + linkHandling: ~ + permissions: [ ]