Compare commits
14 commits
Author | SHA1 | Date | |
---|---|---|---|
a0488daa41 | |||
230677d289 | |||
ad973f63ed | |||
1f5b491d5a | |||
3b64e5b87b | |||
cf710783d9 | |||
da4f409a8d | |||
b86110a3b0 | |||
04d1810bb2 | |||
a3209c6976 | |||
f452efae74 | |||
a213057567 | |||
1e7a319604 | |||
![]() |
09f6aa089b |
7 changed files with 355 additions and 75 deletions
|
@ -3,5 +3,6 @@ pipeline:
|
||||||
image: composer
|
image: composer
|
||||||
commands:
|
commands:
|
||||||
- composer global config repositories.repo-name vcs https://git.digital-competence.de/Packages/php-codesniffer
|
- composer global config repositories.repo-name vcs https://git.digital-competence.de/Packages/php-codesniffer
|
||||||
|
- composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
|
||||||
- composer global require digicomp/php-codesniffer:@dev
|
- composer global require digicomp/php-codesniffer:@dev
|
||||||
- composer global exec -- phpcs --runtime-set ignore_warnings_on_exit 1 --standard=DigiComp Classes/ Migrations/ Tests/ Resources/Private/
|
- composer global exec -- phpcs --runtime-set ignore_warnings_on_exit 1 --standard=DigiComp Classes/ Migrations/ Tests/ Resources/Private/
|
||||||
|
|
|
@ -3,12 +3,19 @@ workspace:
|
||||||
path: package
|
path: package
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
FLOW_VERSION:
|
include:
|
||||||
- 6.3
|
- FLOW_VERSION: 6.3
|
||||||
|
PHP_VERSION: 7.4
|
||||||
|
- FLOW_VERSION: 7.3
|
||||||
|
PHP_VERSION: 7.4
|
||||||
|
- FLOW_VERSION: 7.3
|
||||||
|
PHP_VERSION: 8.2
|
||||||
|
- FLOW_VERSION: 8.2
|
||||||
|
PHP_VERSION: 8.2
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
functional-tests:
|
functional-tests:
|
||||||
image: thecodingmachine/php:7.4-v4-cli
|
image: thecodingmachine/php:${PHP_VERSION}-v4-cli
|
||||||
environment:
|
environment:
|
||||||
# Enable the PDO_SQLITE extension
|
# Enable the PDO_SQLITE extension
|
||||||
- "PHP_EXTENSION_PDO_SQLITE=1"
|
- "PHP_EXTENSION_PDO_SQLITE=1"
|
||||||
|
@ -20,6 +27,6 @@ pipeline:
|
||||||
- "cd $NEOS_BUILD_DIR"
|
- "cd $NEOS_BUILD_DIR"
|
||||||
- "composer create-project --no-install neos/flow-base-distribution:^$FLOW_VERSION ."
|
- "composer create-project --no-install neos/flow-base-distribution:^$FLOW_VERSION ."
|
||||||
- "composer config repositories.repo-name path /woodpecker/package"
|
- "composer config repositories.repo-name path /woodpecker/package"
|
||||||
- "composer remove --dev neos/behat"
|
- "composer remove --dev --no-update neos/behat || composer remove --no-update neos/behat"
|
||||||
- "composer require digicomp/settingvalidator:@dev"
|
- "composer require digicomp/settingvalidator:@dev"
|
||||||
- "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional"
|
- "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional"
|
152
Classes/Validation/Validator/ConditionalValidator.php
Normal file
152
Classes/Validation/Validator/ConditionalValidator.php
Normal file
|
@ -0,0 +1,152 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DigiComp\SettingValidator\Validation\Validator;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of the DigiComp.SettingValidator package.
|
||||||
|
*
|
||||||
|
* (c) digital competence
|
||||||
|
*
|
||||||
|
* This package is Open Source Software. For the full copyright and license
|
||||||
|
* information, please view the LICENSE file which was distributed with this
|
||||||
|
* source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
use Neos\Eel\EelEvaluatorInterface;
|
||||||
|
use Neos\Eel\Exception as NeosEelException;
|
||||||
|
use Neos\Eel\Utility;
|
||||||
|
use Neos\Flow\Annotations as Flow;
|
||||||
|
use Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy;
|
||||||
|
use Neos\Flow\Validation\Exception\InvalidValidationConfigurationException;
|
||||||
|
use Neos\Flow\Validation\Exception\NoSuchValidatorException;
|
||||||
|
use Neos\Flow\Validation\Validator\AbstractValidator;
|
||||||
|
use Neos\Flow\Validation\ValidatorResolver;
|
||||||
|
|
||||||
|
class ConditionalValidator extends AbstractValidator
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @Flow\Inject
|
||||||
|
* @var EelEvaluatorInterface
|
||||||
|
*/
|
||||||
|
protected $eelEvaluator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Flow\Inject
|
||||||
|
* @var ValidatorResolver
|
||||||
|
*/
|
||||||
|
protected $validatorResolver;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
protected $supportedOptions = [
|
||||||
|
'conditions' => [[], 'List of entries with "condition" (eel expression) and "validators" (list of validators).', 'array', true],
|
||||||
|
'fallbackValidators' => [[], 'List of validators that is used if no condition matched.', 'array'],
|
||||||
|
'validationGroups' => [['Default'], 'Same as "Validation Groups" of Flow Framework', 'array'],
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
* @throws InvalidValidationConfigurationException
|
||||||
|
* @throws NeosEelException
|
||||||
|
* @throws NoSuchValidatorException
|
||||||
|
*/
|
||||||
|
protected function isValid($value): void
|
||||||
|
{
|
||||||
|
$validatorConfigs = [];
|
||||||
|
|
||||||
|
$hasMatch = false;
|
||||||
|
|
||||||
|
foreach ($this->options['conditions'] as $condition) {
|
||||||
|
if ($this->eelEvaluator instanceof DependencyProxy) {
|
||||||
|
$this->eelEvaluator->_activateDependency();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Utility::evaluateEelExpression($condition['condition'], $this->eelEvaluator, ['this' => $value])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$hasMatch = true;
|
||||||
|
|
||||||
|
foreach ($condition['validators'] as $validator => $options) {
|
||||||
|
if ($options === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$validatorConfigs[] = [
|
||||||
|
'validator' => $validator,
|
||||||
|
'options' => $options,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$hasMatch) {
|
||||||
|
foreach ($this->options['fallbackValidators'] as $validator => $options) {
|
||||||
|
if ($options === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$validatorConfigs[] = [
|
||||||
|
'validator' => $validator,
|
||||||
|
'options' => $options,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($validatorConfigs as $validatorConfig) {
|
||||||
|
if (!$this->doesValidationGroupsMatch($validatorConfig)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->handleValidationGroups($validatorConfig);
|
||||||
|
|
||||||
|
$validator = $this->validatorResolver->createValidator(
|
||||||
|
$validatorConfig['validator'],
|
||||||
|
$validatorConfig['options']
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($validator === null) {
|
||||||
|
throw new InvalidValidationConfigurationException(
|
||||||
|
\sprintf(
|
||||||
|
'Validator "%s" could not be resolved. Check your Validation.yaml',
|
||||||
|
$validatorConfig['validator']
|
||||||
|
),
|
||||||
|
1402326139
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->getResult()->merge($validator->validate($value));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether at least one configured group does match, if any is configured.
|
||||||
|
*
|
||||||
|
* @param array $validatorConfig
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
protected function doesValidationGroupsMatch(array $validatorConfig): bool
|
||||||
|
{
|
||||||
|
return !isset($validatorConfig['options']['validationGroups'])
|
||||||
|
|| \array_intersect(
|
||||||
|
$validatorConfig['options']['validationGroups'],
|
||||||
|
$this->options['validationGroups']
|
||||||
|
) !== [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add validation groups for recursion if necessary.
|
||||||
|
*
|
||||||
|
* @param array $validatorConfig
|
||||||
|
*/
|
||||||
|
protected function handleValidationGroups(array &$validatorConfig): void
|
||||||
|
{
|
||||||
|
if (\in_array($validatorConfig['validator'], ['DigiComp.SettingValidator:Settings', 'DigiComp.SettingValidator:Conditional', 'DigiComp.SettingValidator:Properties', 'Neos.Flow:Collection'])) {
|
||||||
|
$validatorConfig['options']['validationGroups'] = $this->options['validationGroups'];
|
||||||
|
} elseif (isset($validatorConfig['options']['validationGroups'])) {
|
||||||
|
unset($validatorConfig['options']['validationGroups']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
119
Classes/Validation/Validator/PropertiesValidator.php
Normal file
119
Classes/Validation/Validator/PropertiesValidator.php
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DigiComp\SettingValidator\Validation\Validator;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of the DigiComp.SettingValidator package.
|
||||||
|
*
|
||||||
|
* (c) digital competence
|
||||||
|
*
|
||||||
|
* This package is Open Source Software. For the full copyright and license
|
||||||
|
* information, please view the LICENSE file which was distributed with this
|
||||||
|
* source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
use Neos\Flow\Annotations as Flow;
|
||||||
|
use Neos\Flow\Validation\Exception\InvalidValidationConfigurationException;
|
||||||
|
use Neos\Flow\Validation\Exception\NoSuchValidatorException;
|
||||||
|
use Neos\Flow\Validation\Validator\AbstractValidator;
|
||||||
|
use Neos\Flow\Validation\ValidatorResolver;
|
||||||
|
use Neos\Utility\ObjectAccess;
|
||||||
|
|
||||||
|
class PropertiesValidator extends AbstractValidator
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @Flow\Inject
|
||||||
|
* @var ValidatorResolver
|
||||||
|
*/
|
||||||
|
protected $validatorResolver;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
protected $supportedOptions = [
|
||||||
|
'validatorsForProperties' => [[], 'List of validators for properties. ', 'array', true],
|
||||||
|
'validationGroups' => [['Default'], 'Same as "Validation Groups" of Flow Framework', 'array'],
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
* @throws InvalidValidationConfigurationException
|
||||||
|
* @throws NoSuchValidatorException
|
||||||
|
*/
|
||||||
|
protected function isValid($value): void
|
||||||
|
{
|
||||||
|
$validatorConfigs = [];
|
||||||
|
|
||||||
|
foreach ($this->options['validatorsForProperties'] as $property => $validators) {
|
||||||
|
foreach ($validators as $validator => $options) {
|
||||||
|
if ($options === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$validatorConfigs[] = [
|
||||||
|
'validator' => $validator,
|
||||||
|
'options' => $options,
|
||||||
|
'property' => $property,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($validatorConfigs as $validatorConfig) {
|
||||||
|
if (!$this->doesValidationGroupsMatch($validatorConfig)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->handleValidationGroups($validatorConfig);
|
||||||
|
|
||||||
|
$validator = $this->validatorResolver->createValidator(
|
||||||
|
$validatorConfig['validator'],
|
||||||
|
$validatorConfig['options']
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($validator === null) {
|
||||||
|
throw new InvalidValidationConfigurationException(
|
||||||
|
\sprintf(
|
||||||
|
'Validator "%s" could not be resolved. Check your Validation.yaml',
|
||||||
|
$validatorConfig['validator']
|
||||||
|
),
|
||||||
|
1402326139
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->getResult()->forProperty($validatorConfig['property'])->merge(
|
||||||
|
$validator->validate(ObjectAccess::getPropertyPath($value, $validatorConfig['property']))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether at least one configured group does match, if any is configured.
|
||||||
|
*
|
||||||
|
* @param array $validatorConfig
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
protected function doesValidationGroupsMatch(array $validatorConfig): bool
|
||||||
|
{
|
||||||
|
return !isset($validatorConfig['options']['validationGroups'])
|
||||||
|
|| \array_intersect(
|
||||||
|
$validatorConfig['options']['validationGroups'],
|
||||||
|
$this->options['validationGroups']
|
||||||
|
) !== [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add validation groups for recursion if necessary.
|
||||||
|
*
|
||||||
|
* @param array $validatorConfig
|
||||||
|
*/
|
||||||
|
protected function handleValidationGroups(array &$validatorConfig): void
|
||||||
|
{
|
||||||
|
if (\in_array($validatorConfig['validator'], ['DigiComp.SettingValidator:Settings', 'DigiComp.SettingValidator:Conditional', 'DigiComp.SettingValidator:Properties', 'Neos.Flow:Collection'])) {
|
||||||
|
$validatorConfig['options']['validationGroups'] = $this->options['validationGroups'];
|
||||||
|
} elseif (isset($validatorConfig['options']['validationGroups'])) {
|
||||||
|
unset($validatorConfig['options']['validationGroups']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,7 +20,6 @@ use Neos\Flow\Validation\Exception\InvalidValidationOptionsException;
|
||||||
use Neos\Flow\Validation\Exception\NoSuchValidatorException;
|
use Neos\Flow\Validation\Exception\NoSuchValidatorException;
|
||||||
use Neos\Flow\Validation\Validator\AbstractValidator;
|
use Neos\Flow\Validation\Validator\AbstractValidator;
|
||||||
use Neos\Flow\Validation\ValidatorResolver;
|
use Neos\Flow\Validation\ValidatorResolver;
|
||||||
use Neos\Utility\ObjectAccess;
|
|
||||||
use Neos\Utility\TypeHandling;
|
use Neos\Utility\TypeHandling;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,6 +57,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
{
|
{
|
||||||
$validations = $this->validations;
|
$validations = $this->validations;
|
||||||
|
|
||||||
|
// TODO: feature idea - we could extend the library to automatically be part of the base conjunction validator
|
||||||
$name = $this->options['name'] !== '' ? $this->options['name'] : TypeHandling::getTypeForValue($value);
|
$name = $this->options['name'] !== '' ? $this->options['name'] : TypeHandling::getTypeForValue($value);
|
||||||
if (!isset($validations[$name])) {
|
if (!isset($validations[$name])) {
|
||||||
throw new InvalidValidationOptionsException(
|
throw new InvalidValidationOptionsException(
|
||||||
|
@ -66,7 +66,44 @@ class SettingsValidator extends AbstractValidator
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->getConfigForValidation($validations[$name]) as $validatorConfig) {
|
// @deprecated - converts old "self" to new structure
|
||||||
|
if (isset($validations[$name]['self'])) {
|
||||||
|
foreach ($validations[$name]['self'] as $validator => $options) {
|
||||||
|
if (isset($validations[$name][$validator])) {
|
||||||
|
throw new \RuntimeException('The validator "' . $validator . '" is already defined on parent level.', 1725000364);
|
||||||
|
}
|
||||||
|
$validations[$name][$validator] = $options;
|
||||||
|
}
|
||||||
|
|
||||||
|
unset($validations[$name]['self']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// @deprecated - converts old "properties" to new structure
|
||||||
|
if (isset($validations[$name]['properties'])) {
|
||||||
|
if (isset($validations[$name]['DigiComp.SettingValidator:Properties'])) {
|
||||||
|
throw new \RuntimeException('The validator "DigiComp.SettingValidator:Properties" is already defined on parent level.', 1725000396);
|
||||||
|
}
|
||||||
|
$validations[$name]['DigiComp.SettingValidator:Properties'] = [
|
||||||
|
'validatorsForProperties' => $validations[$name]['properties'],
|
||||||
|
];
|
||||||
|
|
||||||
|
unset($validations[$name]['properties']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$validatorConfigs = [];
|
||||||
|
|
||||||
|
foreach ($validations[$name] as $validator => $options) {
|
||||||
|
if ($options === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$validatorConfigs[] = [
|
||||||
|
'validator' => $validator,
|
||||||
|
'options' => $options,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($validatorConfigs as $validatorConfig) {
|
||||||
if (!$this->doesValidationGroupsMatch($validatorConfig)) {
|
if (!$this->doesValidationGroupsMatch($validatorConfig)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -88,54 +125,10 @@ class SettingsValidator extends AbstractValidator
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($validatorConfig['property'])) {
|
$this->getResult()->merge($validator->validate($value));
|
||||||
$this->getResult()->forProperty($validatorConfig['property'])->merge(
|
|
||||||
$validator->validate(ObjectAccess::getPropertyPath($value, $validatorConfig['property']))
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$this->getResult()->merge($validator->validate($value));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array $validation
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
protected function getConfigForValidation(array $validation): array
|
|
||||||
{
|
|
||||||
$config = [];
|
|
||||||
|
|
||||||
if (isset($validation['self'])) {
|
|
||||||
foreach ($validation['self'] as $validator => $options) {
|
|
||||||
if ($options === null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$config[] = [
|
|
||||||
'validator' => $validator,
|
|
||||||
'options' => $options,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($validation['properties'])) {
|
|
||||||
foreach ($validation['properties'] as $property => $propertyValidation) {
|
|
||||||
foreach ($propertyValidation as $validator => $options) {
|
|
||||||
if ($options === null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$config[] = [
|
|
||||||
'property' => $property,
|
|
||||||
'validator' => $validator,
|
|
||||||
'options' => $options,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $config;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether at least one configured group does match, if any is configured.
|
* Check whether at least one configured group does match, if any is configured.
|
||||||
*
|
*
|
||||||
|
@ -158,7 +151,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
*/
|
*/
|
||||||
protected function handleValidationGroups(array &$validatorConfig): void
|
protected function handleValidationGroups(array &$validatorConfig): void
|
||||||
{
|
{
|
||||||
if ($validatorConfig['validator'] === 'DigiComp.SettingValidator:Settings') {
|
if (\in_array($validatorConfig['validator'], ['DigiComp.SettingValidator:Settings', 'DigiComp.SettingValidator:Conditional', 'DigiComp.SettingValidator:Properties', 'Neos.Flow:Collection'])) {
|
||||||
$validatorConfig['options']['validationGroups'] = $this->options['validationGroups'];
|
$validatorConfig['options']['validationGroups'] = $this->options['validationGroups'];
|
||||||
} elseif (isset($validatorConfig['options']['validationGroups'])) {
|
} elseif (isset($validatorConfig['options']['validationGroups'])) {
|
||||||
unset($validatorConfig['options']['validationGroups']);
|
unset($validatorConfig['options']['validationGroups']);
|
||||||
|
|
|
@ -44,6 +44,7 @@ class SettingsValidatorTest extends FunctionalTestCase
|
||||||
|
|
||||||
self::assertTrue($result->hasErrors());
|
self::assertTrue($result->hasErrors());
|
||||||
self::assertCount(1, $result->getFlattenedErrors());
|
self::assertCount(1, $result->getFlattenedErrors());
|
||||||
|
self::assertCount(1, $result->forProperty('shouldBeTrueAndValidatedByAnnotation')->getErrors());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,12 +2,30 @@
|
||||||
"name": "digicomp/settingvalidator",
|
"name": "digicomp/settingvalidator",
|
||||||
"description": "Just a Neos\\Flow Validator resolving other Validators with Configuration/Validation.yaml",
|
"description": "Just a Neos\\Flow Validator resolving other Validators with Configuration/Validation.yaml",
|
||||||
"type": "neos-package",
|
"type": "neos-package",
|
||||||
|
"keywords": [
|
||||||
|
"Neos",
|
||||||
|
"Flow",
|
||||||
|
"validation"
|
||||||
|
],
|
||||||
|
"homepage": "https://github.com/digital-competence/DigiComp.SettingValidator",
|
||||||
|
"license": "MIT",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Ferdinand Kuhl",
|
||||||
|
"email": "f.kuhl@digital-competence.de",
|
||||||
|
"homepage": "https://www.digital-competence.de",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"neos/flow": "^6.3.5",
|
"php": ">=7.4.0",
|
||||||
"php": ">=7.4"
|
"neos/flow": "^6.3.5 || ^7.0 || ^8.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "~8.5"
|
"mikey179/vfsstream": "^1.6.1",
|
||||||
|
"neos/buildessentials": "^7.0.0",
|
||||||
|
"phpunit/phpunit": "~8.5",
|
||||||
|
"vimeo/psalm": "~4.22.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@ -19,15 +37,19 @@
|
||||||
"DigiComp\\SettingValidator\\Tests\\": "Tests/"
|
"DigiComp\\SettingValidator\\Tests\\": "Tests/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"config": {
|
||||||
|
"sort-packages": true,
|
||||||
|
"platform-check": true
|
||||||
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"neos": {
|
|
||||||
"package-key": "DigiComp.SettingValidator"
|
|
||||||
},
|
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-develop": "3.1.x-dev",
|
"dev-develop": "3.2.x-dev",
|
||||||
"dev-version/2.x-dev": "2.1.x-dev",
|
"dev-version/2.x-dev": "2.1.x-dev",
|
||||||
"dev-version/1.x-dev": "1.0.x-dev"
|
"dev-version/1.x-dev": "1.0.x-dev"
|
||||||
},
|
},
|
||||||
|
"neos": {
|
||||||
|
"package-key": "DigiComp.SettingValidator"
|
||||||
|
},
|
||||||
"applied-flow-migrations": [
|
"applied-flow-migrations": [
|
||||||
"Inwebs.Basket-201409170938",
|
"Inwebs.Basket-201409170938",
|
||||||
"TYPO3.FLOW3-201201261636",
|
"TYPO3.FLOW3-201201261636",
|
||||||
|
@ -64,20 +86,5 @@
|
||||||
"Neos.Flow-20190425144900",
|
"Neos.Flow-20190425144900",
|
||||||
"Neos.Flow-20190515215000"
|
"Neos.Flow-20190515215000"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Ferdinand Kuhl",
|
|
||||||
"email": "f.kuhl@digital-competence.de",
|
|
||||||
"homepage": "https://www.digital-competence.de",
|
|
||||||
"role": "Developer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"homepage": "https://github.com/digital-competence/DigiComp.SettingValidator",
|
|
||||||
"keywords": [
|
|
||||||
"Neos",
|
|
||||||
"Flow",
|
|
||||||
"validation"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue