pimolo / dic

A simple and PSR-11 compliant dependency injection container. Do not use it in production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scalar support?

pimolo opened this issue · comments

When adding a scalar entry without identifier, the container will fail to retrieve the FQCN and define it to false.
Either we should support scalars by making the identifier argument mandatory, or throw an exception if the entry is not an object instance.