Skip to content

Commit df5ee0f

Browse files
Fix some typos, improve formating
1 parent 0f6dc33 commit df5ee0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/posts/dependency-injection-from-scratch.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: "Inside Dependency Injection: building DI from scratch"
3-
date: 2023-03-15T23:15:57+01:00
3+
date: 2024-03-15T23:15:57+01:00
44
draft: false
5-
tags: [ "dependency injection", "PHP", "software design" ]
5+
tags: [ "dependency injection", "php", "software design" ]
66
description: "Most frameworks nowadays use Dependency Injection. In this article I will get inside the basics how a DI works by building one from scratch"
77
---
88

@@ -56,7 +56,7 @@ There are several obvious issues with this approach:
5656
Singletons are the result of the mentioned issues.
5757
They are a software pattern
5858
that aims to have a single instance of a given object that will be reused for every consecutive use case.
59-
To achieve this task there is always a method to get the same instance again, and if none exists yet they will create
59+
To achieve this task there is always a method to get the same instance again, and if none exists, yet they will create
6060
it.
6161

6262
### Functional-style singleton

0 commit comments

Comments
 (0)