|
19 | 19 | use Monarc\Core\Service\Helper\ScalesCacheHelper;
|
20 | 20 | use Monarc\Core\Storage\Authentication as StorageAuthentication;
|
21 | 21 | use Monarc\Core\Table\Factory\ClientEntityManagerFactory;
|
| 22 | +use Monarc\Core\Validator\InputValidator as CoreInputValidator; |
22 | 23 | use Monarc\FrontOffice\Controller;
|
23 | 24 | use Monarc\FrontOffice\CronTask;
|
24 | 25 | use Monarc\FrontOffice\Export;
|
|
1648 | 1649 | ReflectionBasedAbstractFactory::class,
|
1649 | 1650 | InputValidator\InstanceRiskOp\UpdateInstanceRiskOpDataInputValidator::class =>
|
1650 | 1651 | ReflectionBasedAbstractFactory::class,
|
| 1652 | + CoreInputValidator\Asset\PostAssetDataInputValidator::class => static function ( |
| 1653 | + Containerinterface $container |
| 1654 | + ) { |
| 1655 | + return new CoreInputValidator\Asset\PostAssetDataInputValidator( |
| 1656 | + $container->get('config'), |
| 1657 | + $container->get(CoreInputValidator\InputValidationTranslator::class), |
| 1658 | + $container->get(Table\AssetTable::class) |
| 1659 | + ); |
| 1660 | + }, |
| 1661 | + CoreInputValidator\Threat\PostThreatDataInputValidator::class => static function ( |
| 1662 | + Containerinterface $container |
| 1663 | + ) { |
| 1664 | + return new CoreInputValidator\Threat\PostThreatDataInputValidator( |
| 1665 | + $container->get('config'), |
| 1666 | + $container->get(CoreInputValidator\InputValidationTranslator::class), |
| 1667 | + $container->get(Table\ThreatTable::class) |
| 1668 | + ); |
| 1669 | + }, |
| 1670 | + CoreInputValidator\Vulnerability\PostVulnerabilityDataInputValidator::class => static function ( |
| 1671 | + Containerinterface $container |
| 1672 | + ) { |
| 1673 | + return new CoreInputValidator\Vulnerability\PostVulnerabilityDataInputValidator( |
| 1674 | + $container->get('config'), |
| 1675 | + $container->get(CoreInputValidator\InputValidationTranslator::class), |
| 1676 | + $container->get(Table\VulnerabilityTable::class) |
| 1677 | + ); |
| 1678 | + }, |
1651 | 1679 |
|
1652 | 1680 | // Commands
|
1653 | 1681 | Import\Command\ImportAnalysesCommand::class => static function (
|
|
0 commit comments