We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __construct( |
||
| 22 | ConstraintValidatorFactoryInterface $constraintValidatorFactory, |
||
| 23 | ?ValidatorInterface $validator, |
||
| 24 | ?TranslatorInterface $translator |
||
| 25 | ) { |
||
| 26 | if (null === $validator) { |
||
| 27 | throw new ServiceNotFoundException("The 'validator' service is not found. To use the 'InputValidator' you need to install the Symfony Validator Component first. See: 'https://symfony.com/doc/current/validation.html'"); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->defaultValidator = $validator; |
||
| 31 | $this->defaultTranslator = $translator; |
||
| 32 | $this->constraintValidatorFactory = $constraintValidatorFactory; |
||
| 33 | } |
||
| 45 |