Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to dynamically validate data with Symfony

How to dynamically validate data with Symfony

Symfony Con 2022

Marion Hurteau

November 18, 2022
Tweet

More Decks by Marion Hurteau

Other Decks in Programming

Transcript

  1. 4

  2. 6

  3. 69

  4. 81

  5. TL;DR: 👉 Validate ! ✨ $context->getValidator()->inContext($context) 👉 External constraint :

    - Maintainable - Testable - Reusable 👉 _instanceof & !tagged_locator - + default_index_method 82