A
A
AlpineMilk2020-11-24 10:48:13
PHP
AlpineMilk, 2020-11-24 10:48:13

What is the best way to arrange the configuration between the application and the bundle?

Hello everyone, I have this question:
There is a symphony application in which there is a bundle responsible for communicating with external services 5fbcb6e9f0ce4562990454.jpeg
I have several design questions
For the configuration, there are parameters with access keys that this bundle accepts and creates a connection with third-party services. The symphony from the controller will call a method from the bundle, for example, a list of users, the bundle gets data from third-party services, overtakes them as it needs and gives the symphony.
1. What is the best way to configure this bundle? Create an abstract service that will do the configuration and inherit from it all the classes that will give data to the controller? Or is it better to create a listener on request and make configuration there? Or what other way?
2. How to call such classes that give data to the symphony from the bundle? Is it Service? Since these classes request data from third-party services, it makes its own transformations with them and returns the symphony

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question