Answer the question
In order to leave comments, you need to log in
Do-it-yourself autowiring (almost like in symfony)?
Hello! there is a self-written project, with its own controllers, which has to register dependencies for auto-varianging into controller methods.
To register a class for autowaring, you need to use a custom event. And so for each service that I want to register.
I would like to make sure that all classes from a certain directory (for example src/) are automatically registered as services for autowiring.
I wanted to know if there are any libraries, or tools that would simplify such development?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question