-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
symfony-docs/html_sanitizer.rst
Lines 214 to 215 in c59af97
service. This service will be :doc:`autowired </service_container/autowiring>` | |
for services having an ``HtmlSanitizerInterface $appPostSanitizer`` parameter. |
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.