di
di copied to clipboard
Change syntax for get services by tag to `#tag-name`
Replace $container->get('tag@car'); to $container->get('#car');.
It will be more shortly and familiar.
The original form was made for extending purposes. For example, the package may support any other custom things and simpler to use new short word with @ instead of thinking about another char because @ already means tags.
The original form was made for extending purposes. For example, the package may support any other custom things and simpler to use new short word with @ instead of thinking about another char because @ already means tags.
Dou you mean #?
I mean tag@ is ok to be able to add some new shortcuts like decorator@ or something else. This form allows you just add new word instead of add more and more characters.
Hm. How can work $container->get('decorator@XXX');?
Has ideas anything keywords for use in get() ?
We can probably support both.
Hm. How can work
$container->get('decorator@XXX');?
It doesn't matter how it can work. That's a showcase.
Has ideas anything keywords for use in
get()?
Sorry, I don't understand you.