Skip to content

Commit

Permalink
Fix Ignores the constant PIMCORE_CONFIGURATION_DIRECTORY - resolves #786
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Aug 21, 2023
1 parent 44a4c3b commit 460d594
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"minimum-stability": "dev",
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"pimcore/pimcore": "^10.6.8 || ^11.0",
"pimcore/pimcore": "^10.6.8 || ^11.0.7",
"pimcore/compatibility-bridge-v10": "^1.0",
"webonyx/graphql-php": "^15.2.3"
},
Expand Down
5 changes: 4 additions & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public function getConfigTreeBuilder()
$this->addSupportedTypes($rootNode);

/** @var ArrayNodeDefinition $rootNode */
ConfigurationHelper::addConfigLocationWithWriteTargetNodes($rootNode, ['data_hub' => '/var/config/data_hub']);
ConfigurationHelper::addConfigLocationWithWriteTargetNodes(
$rootNode,
['data_hub' => PIMCORE_CONFIGURATION_DIRECTORY . '/data_hub']
);

return $treeBuilder;
}
Expand Down

0 comments on commit 460d594

Please sign in to comment.