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
And I just noticed the naming for the Target attribute:
I have no name! /app/server/backend bin/console debug:autowi lock
Autowirable Types
=================
The following classes & interfaces can be used as type-hints when autowiring:
(only showing classes/interfaces matching lock)
[...]
Factory provides method to create locks.
Symfony\Component\Lock\LockFactory $crawlerLockFactory - target:crawler.lock.factory - alias:lock.crawler.factory
Symfony\Component\Lock\LockFactory $sharedLockFactory - target:shared.lock.factory - alias:lock.shared.factory
@GromNaN The Target attribute has a big benefit over relying on the argument name: it provides a clear intent of using a specific target, both to the DI component (allowing it to fail explicitly when this target does not exist instead of silently using the default autowiring target for that type) and to developers reading the code.
Description
I have the following configuration
And I just noticed the naming for the Target attribute:
So I need to write the following code:
This is not optimal. I would prefer to write
I would be more in sync with the http client, and the workflow.
WDYT?
Example
No response
The text was updated successfully, but these errors were encountered: