From 08e6ad00d4cb36254c253aac14976bfa9eb0b40d Mon Sep 17 00:00:00 2001 From: Robin Krahnen Date: Mon, 4 May 2020 22:01:48 +0200 Subject: [PATCH] use existing constant for configuration type --- Classes/Validation/Validator/SettingsValidator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 0f4b430..9b2b5c8 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -12,6 +12,7 @@ namespace DigiComp\SettingValidator\Validation\Validator; * source code. */ +use DigiComp\SettingValidator\Package; use Neos\Flow\Annotations as Flow; use Neos\Flow\Configuration\ConfigurationManager; use Neos\Flow\Validation\Exception\InvalidValidationConfigurationException; @@ -61,7 +62,7 @@ class SettingsValidator extends AbstractValidator public function injectConfigurationManager(ConfigurationManager $configurationManager) { $this->configurationManager = $configurationManager; - $this->validations = $this->configurationManager->getConfiguration('Validation'); + $this->validations = $this->configurationManager->getConfiguration(Package::CONFIGURATION_TYPE_VALIDATION); } /**