Skip to content

Commit

Permalink
[Bug]: Fix Static Routes Bundle to follow PIMCORE_CONFIGURATION_DIREC…
Browse files Browse the repository at this point in the history
…TORY constant (pimcore#16331)

* Update Configuration.php

* apply to custom reports too
  • Loading branch information
kingjia90 authored Dec 6, 2023
1 parent 98327b5 commit 5c377d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5c377d2

Please sign in to comment.