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
publicfunctionfoo(#[Inject('scalar')] $scalar, #[Tags('messageSource')] $messageSources)
{
// $scalar is an alternative to $container->get('scalar')// $messageSources is an alternative to $container->get('#messageSource')
}
Can be also used for class properties.
The text was updated successfully, but these errors were encountered:
Is scalar a concrete key there? Overall, that ties the code in question to this particular implementation of DI container. I'm not sure it is a great idea.
Can be also used for class properties.
The text was updated successfully, but these errors were encountered: