use existing constant for configuration type
This commit is contained in:
parent
8b0e5640b9
commit
08e6ad00d4
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue