dependency-injection.md: fix some typos (#1681)

This commit is contained in:
san1j 2018-07-07 09:05:22 -04:00 committed by Yusuke Matsubara
parent fa6353b3ef
commit d7b956e5ac

View file

@ -1,6 +1,6 @@
## Overview ## Overview
At its core, dependency injection is just the principle of `"tell, dont ask"` put into practice; for instance, if a class needs to use the `MediaWikiApi`, it should be handed an instance of the classs rather than reaching out to get it. This has the effect of decoupling code, making it easier to test and reuse. At its core, dependency injection is just the principle of `"tell, don't ask"` put into practice; for instance, if a class needs to use the `MediaWikiApi`, it should be handed an instance of the class rather than reaching out to get it. This has the effect of decoupling code, making it easier to test and reuse.
## Dependency Injection in the Commons app ## Dependency Injection in the Commons app