File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
* Dependency Injection
7
7
*
8
8
* Purpose:
9
- * to implement a loosely coupled architecture in order to get better testable, maintainable and extandable code
9
+ * to implement a loosely coupled architecture in order to get better testable, maintainable and extendable code
10
10
*
11
11
* Examples:
12
12
* - the Doctrine2 ORM uses dependency injection e.g. for Configuration that is injected into a Connection object. for
13
13
* testing purposes, one can easily create a mock object of the configuration and inject that into the connection
14
14
* object
15
15
* - Symfony and Zend Framework 2 already have containers for DI that create objects via a configuration array and
16
- * inject them where needed
16
+ * inject them where needed (i.e. in Controllers)
17
17
*
18
18
*/
19
19
class Configuration
@@ -60,4 +60,4 @@ public function connect()
60
60
$ host = $ this ->_configuration ->getHost ();
61
61
// ...
62
62
}
63
- }
63
+ }
You can’t perform that action at this time.
0 commit comments