diff --git a/README.md b/README.md index f81dded..164c5ca 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,20 @@ Install this package with Composer: composer require kafkiansky/service-locator-interrupter "^4.0" --dev + + + PHP ^8.2 && Laravel ^11.x + + + composer require kafkiansky/service-locator-interrupter "^5.0" --dev + + ## WHY Laravel-like developers prefer to use some kinds of ioc bad practices. -In example: facades, helpers method, container injection and container instances creation anywhere: controllers, services, routes and even in models (wtf?). +In example: facades, helpers method, container injection and container instances creation anywhere: controllers, services, routes and even in models. You need inject necessary services in method and constructor, not call container to do it for you. Any services **must has** it own contract, container injection - it's not legal contract, it's hack.