Skip to content

Commit f1b3f74

Browse files
jdreesenmnapoli
authored andcommitted
Fix small typo
1 parent 4c0b6fe commit f1b3f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

news/21-php-di-6-compiled-container.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ In a container, things go differently because the container is generic: it can h
5353

5454
If you are curious, you can read [PHP-DI's `ObjectCreator` class](https://github.com/PHP-DI/PHP-DI/blob/b6ff39dd7eb3a67485af7992274367acc2d04b6e/src/Definition/Resolver/ObjectCreator.php#L114-L162): it takes a definition object and creates an object.
5555

56-
This process involves using PHP's Reflection API and a lot of logic (especially if the container is quite smart). And of course, this takes time. This is actually where PHP-DI spends most of its time. This is also the reason why "simple" containers like Pimple are faster that more complex ones: they have very simple (and limited) logic for creating objects.
56+
This process involves using PHP's Reflection API and a lot of logic (especially if the container is quite smart). And of course, this takes time. This is actually where PHP-DI spends most of its time. This is also the reason why "simple" containers like Pimple are faster than more complex ones: they have very simple (and limited) logic for creating objects.
5757

5858
**Compiling the container means bypassing all that**. The idea is to take all the definitions and turn them into optimized PHP code, close to the code we would write ourselves (except we don't have to write it ourselves).
5959

0 commit comments

Comments
 (0)