Dependency Injection

Required dependencies are injected via constructor's arguments.

In the first versions of Gobline, dependencies were managed by Pimple. However, the more the application grew, the more it turned out to be a configuration hell: for each controller requiring dependencies, the controller had to be added into the dependency injection controller and it ended to be a quite tedious task.

Gobline uses now its own container with the capacity of auto-resolving dependencies through constructor type hints.