There seems to be two ways to dynamically instantiate a service in Symfony:

* Using a factory (<https://symfony.com/doc/current/service_container/factories.html>)
* Using a configurator (<https://symfony.com/doc/current/service_container/configurators.html>)

Both methods seem to be current. Inspecting the issues and changelog didn't give me any more informations on which is the most common or which method is considered best practice.

So, should I be using service factory over service configurator or service configurator over factory? Why and which is the more recent?

Thanks a lot!