Skip to content

Commit

Permalink
Update Validator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imdhemy committed Mar 17, 2024
1 parent 1073784 commit a682a63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Symblaze\Bundle\Http\Validation;

use Symblaze\Bundle\Http\Exception\ValidationFailedException;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\Constraints\GroupSequence;
use Symfony\Component\Validator\Validator\ValidatorInterface as SymfonyValidator;
Expand All @@ -14,8 +15,10 @@
*/
final readonly class Validator implements ValidatorInterface
{
public function __construct(private SymfonyValidator $symfonyValidator)
{
public function __construct(
private SymfonyValidator $symfonyValidator,
private ParameterBagInterface $parameterBag
) {
}

public function abortUnlessValid(
Expand Down

0 comments on commit a682a63

Please sign in to comment.