You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That part of the Service Container doc is suggestive of autowiring for specific argument names, but again says nothing about how the service name is being magically converted to a name binding.
Where the heck did this $appPostSanitizer name come from? Is it case sensitive? Can I change it? What happens if I use a different name that's not configured? This just sounds so fragile without some logic behind it.
The text was updated successfully, but these errors were encountered:
miqrogroove
changed the title
HTML Sanitizer Autowiring a Total Mysery
HTML Sanitizer Autowiring a Total Mystery
May 31, 2025
symfony-docs/html_sanitizer.rst
Lines 214 to 215 in c59af97
This one sentence seems to go completely without explanation. It links to the Autowiring page, which says nothing about named arguments.
The closest thing I could find is here https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
That part of the Service Container doc is suggestive of autowiring for specific argument names, but again says nothing about how the service name is being magically converted to a name binding.
Where the heck did this
$appPostSanitizer
name come from? Is it case sensitive? Can I change it? What happens if I use a different name that's not configured? This just sounds so fragile without some logic behind it.The text was updated successfully, but these errors were encountered: