LastDragon-ru / lara-asp

Awesome Set of Packages for Laravel
MIT License
11 stars 1 forks source link

No implicit dependencies. #151

Open LastDragon-ru opened 6 months ago

LastDragon-ru commented 6 months ago

Some time ago injection of Container/Config (and some other) were replaced by the direct call Container::getInstance() to be compatible with Octane (#38). The main problem with the current approach - implicit dependencies and (more important) implicit config (Container::getInstance()->make(Repository::class)->get(...)).

Recently I have reviewed all these places and looks like it is possible to convert all of them into explicit 🎉