8000 [Validator] added BIC validator by mvhirsch · Pull Request #5623 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Validator] added BIC validator #5623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
[Validator] fixed default annotation method and some typos. refs #5623
  • Loading branch information
mvhirsch committed Aug 18, 2015
commit f952885a213ce751afb940df6779a07f77f0b580
8 changes: 3 additions & 5 deletions reference/constraints/Bic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Bic
.. versionadded:: 2.8
The Bic constraint was introduced in Symfony 2.8.

This constraint is used to ensure that a value has the proper format of an
This constraint is used to ensure that a value has the proper format of a
`Business Identifier Code (BIC)`_. BIC is an internationally agreed means to
uniquely identify both financial and non-financial institutions.

+----------------+-----------------------------------------------------------------------+
| Applies to | :ref:`property or method<validation-property-target>` |
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `message`_ |
| | - `payload`_ |
Expand Down Expand Up @@ -37,9 +37,7 @@ will contain a Business Identifier Code (BIC).
class Transaction
{
/**
* @Assert\Bic(
* message="This is not a valid Business Identifier Code (BIC)."
* )
* @Assert\Bic()
*/
protected $businessIdentifierCode;
}
Expand Down
0