Zero-Config: Resolve class by service name #21667
Labels
DependencyInjection
Feature
RFC
RFC = Request For Comments (proposals about features that you want to be discussed)
Just have heard about the Zero-Config activities so I like to give in some idea. I tried to implement it but it seems a bit bigger so I like to ask before.
Service configuration without passing class
Imagine this services.yml defining a custom service:
What's clearly missing is the
class:
argument.With the correct service name the class could be resolved.
As I experienced this occurs quite often for ...
Because they got that singleton touch.
Resolving class name
The
class
forfoo.bar.baz_qux
should be looked up like this:\FooBundle\Bar\BazQux
classucwords()
)\FooBundle\Bar\Baz_Qux
class\Foo\Bar\BazQux
class\Foo\Bar\Baz_Qux
classThe text was updated successfully, but these errors were encountered: