From 5c377d29305020bc475ad5f399aa0d0e7def40bb Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Wed, 6 Dec 2023 12:12:12 +0100 Subject: [PATCH] [Bug]: Fix Static Routes Bundle to follow PIMCORE_CONFIGURATION_DIRECTORY constant (#16331) * Update Configuration.php * apply to custom reports too --- .../src/DependencyInjection/Configuration.php | 2 +- .../src/DependencyInjection/Configuration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/CustomReportsBundle/src/DependencyInjection/Configuration.php b/bundles/CustomReportsBundle/src/DependencyInjection/Configuration.php index 13995d22ff9..50fb4038305 100644 --- a/bundles/CustomReportsBundle/src/DependencyInjection/Configuration.php +++ b/bundles/CustomReportsBundle/src/DependencyInjection/Configuration.php @@ -74,7 +74,7 @@ public function getConfigTreeBuilder(): TreeBuilder ->end() ->end(); - ConfigurationHelper::addConfigLocationWithWriteTargetNodes($rootNode, ['custom_reports' => '/var/config/custom_reports']); + ConfigurationHelper::addConfigLocationWithWriteTargetNodes($rootNode, ['custom_reports' => PIMCORE_CONFIGURATION_DIRECTORY . '/custom_reports']); return $treeBuilder; } diff --git a/bundles/StaticRoutesBundle/src/DependencyInjection/Configuration.php b/bundles/StaticRoutesBundle/src/DependencyInjection/Configuration.php index 991164e847b..358d39d505b 100644 --- a/bundles/StaticRoutesBundle/src/DependencyInjection/Configuration.php +++ b/bundles/StaticRoutesBundle/src/DependencyInjection/Configuration.php @@ -56,7 +56,7 @@ public function getConfigTreeBuilder(): TreeBuilder ->end() ->end(); - ConfigurationHelper::addConfigLocationWithWriteTargetNodes($rootNode, ['staticroutes' => '/var/config/staticroutes']); + ConfigurationHelper::addConfigLocationWithWriteTargetNodes($rootNode, ['staticroutes' => PIMCORE_CONFIGURATION_DIRECTORY . '/staticroutes']); return $treeBuilder; }