shaarli / Shaarli

The personal, minimalist, super-fast, database free, bookmarking service - community repo

Home Page:https://shaarli.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DX: Improve dependency injection container reference

ArthurHoaro opened this issue · comments

Follow-up of #1972 (review)

With the latest upgrade to Slim 4, we use a DI container that doesn't provide any type hinting. It makes working with the container pretty hard, and prone to error, because any type hint must be done explicitly during usage.

We should be able to figure out a solution which could let us have type hinting when using container's attributes.