Skip to content

Commit

Permalink
Merge pull request #27 from spiral-packages/update-sf
Browse files Browse the repository at this point in the history
Add Symfony 7.0 support
  • Loading branch information
butschster authored Apr 2, 2024
2 parents 2894e90 + b565f01 commit 8682c30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"spiral/filters": "^3.1",
"spiral/validation": "^3.1",
"doctrine/annotations": "^1.13 || ^2.0",
"symfony/cache": "^6.0",
"symfony/cache": "^6.4 || ^7.0",
"symfony/psr-http-message-bridge": "^2",
"symfony/validator": "^6.0",
"symfony/validator": "^6.4 || ^7.0",
"spiral/attributes": "^2.8 || ^3.0",
"spiral/http": "^3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Bootloader/ValidatorBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function boot(ValidationProvider $provider, ValidationBootloader $validat
private function initSymfonyValidator(ConstraintValidatorFactoryInterface $validatorFactory): ValidatorInterface
{
return \Symfony\Component\Validator\Validation::createValidatorBuilder()
->enableAnnotationMapping()
->enableAttributeMapping()
->setConstraintValidatorFactory($validatorFactory)
->getValidator();
}
Expand Down

0 comments on commit 8682c30

Please sign in to comment.