File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ check that the BIC is associated with a given IBAN.
14
14
| | - `iban `_ |
15
15
| | - `ibanMessage `_ |
16
16
| | - `ibanPropertyPath `_ |
17
+ | | - `allowLowerCase `_ |
18
+ | | - `allowSpaces `_ |
17
19
+----------------+-----------------------------------------------------------------------+
18
20
| Class | :class: `Symfony\\ Component\\ Validator\\ Constraints\\ Bic ` |
19
21
+----------------+-----------------------------------------------------------------------+
@@ -131,4 +133,20 @@ For example, if you want to compare the ``$bic`` property of some object
131
133
with regard to the ``$iban `` property of the same object, use
132
134
``propertyPath="iban" `` in the comparison constraint of ``$bic ``.
133
135
136
+ allowLowerCase
137
+ ~~~~~~~~~~~~~~~~
138
+
139
+ **type **: ``boolean `` **default **: false
140
+
141
+ If this option is set to ``false `` and value contains a lower letter, a validation
142
+ error will be returned.
143
+
144
+ allowSpaces
145
+ ~~~~~~~~~~~~~~~~
146
+
147
+ **type **: ``boolean `` **default **: true
148
+
149
+ If this option is set to ``false `` and value contains a space, a validation
150
+ error will be returned.
151
+
134
152
.. _`Business Identifier Code (BIC)` : https://en.wikipedia.org/wiki/Business_Identifier_Code
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ borders with a reduced risk of propagating transcription errors.
11
11
+----------------+-----------------------------------------------------------------------+
12
12
| Options | - `message `_ |
13
13
| | - `payload `_ |
14
+ | | - `allowLowerCase `_ |
15
+ | | - `allowSpaces `_ |
14
16
+----------------+-----------------------------------------------------------------------+
15
17
| Class | :class: `Symfony\\ Component\\ Validator\\ Constraints\\ Iban ` |
16
18
+----------------+-----------------------------------------------------------------------+
@@ -110,6 +112,22 @@ You can use the following parameters in this message:
110
112
| ``{{ value }} `` | The current (invalid) value |
111
113
+-----------------+-----------------------------+
112
114
115
+ allowLowerCase
116
+ ~~~~~~~~~~~~~~~~
117
+
118
+ **type **: ``boolean `` **default **: true
119
+
120
+ If this option is set to ``false `` and value contains a lower letter, a validation
121
+ error will be returned.
122
+
123
+ allowSpaces
124
+ ~~~~~~~~~~~~~~~~
125
+
126
+ **type **: ``boolean `` **default **: true
127
+
128
+ If this option is set to ``false `` and value contains a space, a validation
129
+ error will be returned.
130
+
113
131
.. include :: /reference/constraints/_payload-option.rst.inc
114
132
115
133
.. _`International Bank Account Number (IBAN)` : https://en.wikipedia.org/wiki/International_Bank_Account_Number
You can’t perform that action at this time.
0 commit comments