Commit c09eacc
committed
minor #15172 [Validator] Add warning about closure not being cachable (Nyholm)
This PR was squashed before being merged into the 4.4 branch.
Discussion
----------
[Validator] Add warning about closure not being cachable
Follow up from symfony/symfony#40645
The annotation cache will not work with `Closure`.
If I understand correctly, it is not possible to have external dependencies in your custom validator AND get your annotation cached. You have to chose one or the other.
Commits
-------
ebddb78 [Validator] Add warning about closure not being cachable1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
254 | 261 | | |
255 | 262 | | |
256 | 263 | | |
| |||
0 commit comments