Pimple should not be used as a locator for fetching dependencies from as things are starting to get coupled which obviously is the exact opposite of the problem that it was supposed to solve.
- Use Symfony DI instead,
- get rid of service providers,
- find a way to autowire the dependencies in the HTTP verb methods and middlewares.
Pimple should not be used as a locator for fetching dependencies from as things are starting to get coupled which obviously is the exact opposite of the problem that it was supposed to solve.