use existing constant for configuration type

This commit is contained in:
Robin Krahnen 2020-05-04 22:01:48 +02:00
parent 8b0e5640b9
commit 08e6ad00d4

View file

@ -12,6 +12,7 @@ namespace DigiComp\SettingValidator\Validation\Validator;
* source code. * source code.
*/ */
use DigiComp\SettingValidator\Package;
use Neos\Flow\Annotations as Flow; use Neos\Flow\Annotations as Flow;
use Neos\Flow\Configuration\ConfigurationManager; use Neos\Flow\Configuration\ConfigurationManager;
use Neos\Flow\Validation\Exception\InvalidValidationConfigurationException; use Neos\Flow\Validation\Exception\InvalidValidationConfigurationException;
@ -61,7 +62,7 @@ class SettingsValidator extends AbstractValidator
public function injectConfigurationManager(ConfigurationManager $configurationManager) public function injectConfigurationManager(ConfigurationManager $configurationManager)
{ {
$this->configurationManager = $configurationManager; $this->configurationManager = $configurationManager;
$this->validations = $this->configurationManager->getConfiguration('Validation'); $this->validations = $this->configurationManager->getConfiguration(Package::CONFIGURATION_TYPE_VALIDATION);
} }
/** /**