Skip to content

Commit

Permalink
drop alias for Validator in services definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
digibeuk committed Jul 3, 2017
1 parent 593fe9c commit eae7ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
arguments:
- "@sandwich_vies.vies_api"
tags:
- { name: validator.constraint_validator, alias: vat_number }
- { name: validator.constraint_validator }

sandwich_vies.vies_api:
class: DragonBe\Vies\Vies
2 changes: 1 addition & 1 deletion src/Validator/Constraint/VatNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ final class VatNumber extends Constraint
*/
public function validatedBy()
{
return 'vat_number';
return VatNumberValidator::class;
}
}

0 comments on commit eae7ff8

Please sign in to comment.