Skip to content

Commit

Permalink
🐛 use pimcore config dir constant
Browse files Browse the repository at this point in the history
* Fix: Ignores the constant PIMCORE_CONFIGURATION_DIRECTOR (#8)

* See pimcore/data-hub#789
  • Loading branch information
blankse committed Aug 21, 2023
1 parent 9fe2067 commit 883684f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.0.1]

Fix: Ignores the constant PIMCORE_CONFIGURATION_DIRECTORY

## [2.0.0]

Pimcore 11 Support
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"php": "^8.1",
"endroid/qr-code": "^4.8",
"pimcore/admin-ui-classic-bundle": "^1.0",
"pimcore/pimcore": "^11.0"
"pimcore/pimcore": "^11.0.7"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.23",
Expand Down
5 changes: 4 additions & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public function getConfigTreeBuilder(): TreeBuilder
->end();

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

return $treeBuilder;
}
Expand Down

0 comments on commit 883684f

Please sign in to comment.