From a617ee43b356f4c6317aee745863f9033d528743 Mon Sep 17 00:00:00 2001 From: Peter Grundmann Date: Wed, 30 Oct 2024 23:11:45 +0100 Subject: [PATCH] typo --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index aa8819f..6e9ca47 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,7 @@ $db = Ioc::get(IDatabase::class); ## Why using an Ioc container -An _IoC Container_ simplifies the creation of instances. It resolves object dependencies and is optimized to create instances on first use. It also makes it possible to replace classes with other (mock) implementations by changing one line of code. And it works perfectly with constructor dependency injections, forcing you to write cleaner code. It can also replace "global" collecton classes. +An _IoC Container_ simplifies the creation of instances. It resolves object dependencies and is optimized to create instances on first use. It also makes it possible to replace classes with other (mock) implementations by changing one line of code. And it works perfectly with constructor dependency injections, forcing you to write cleaner code. It can also replace "global" collection classes. In short, you define how instances are to be created, not when.