Answer the question
In order to leave comments, you need to log in
[Silex] Where to place Provider?
I can not understand where and how best to place providers?
It’s convenient with vendor ones, since they all lie in vendor having a separate directory for each provider, but when you write your own providers, which you hope to reuse later, everything becomes more vague.
You can place it in AppBundle/Provider/ProviderName.php , but in this case one provider is one file, and you may need many files.
If you need to multiply files, then the Namespace is AppBundle/Provider/ProviderName/ProviderName , is this valid?
Next, Symfony Best Practice tells us to place configuration loading in AppBundle/DependencyInjection, for this Silex will also need a separate provider. How to be?
Briefly: How, following Best Practice, to streamline the location of providers in Silex?
UPD: I would be very grateful if you send interesting and beautiful, in terms of architecture, Silex projects.
Answer the question
In order to leave comments, you need to log in
Well, you write some kind of component, and bam, you have a namespace with this component. And then you write such a provider, and he is so bang in the namespace of the component for which you are writing this business. Or you just have a Provider namespace.... Well, I think you understand me. If you have too many providers there, then you should think about why.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question