From 1d554ddce3b79159253e84e7f3fa4e37cc8a54ef Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Wed, 23 Jan 2013 13:16:36 +0100 Subject: [PATCH] Update DependenyInjection/DependencyInjection.php --- DependenyInjection/DependencyInjection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DependenyInjection/DependencyInjection.php b/DependenyInjection/DependencyInjection.php index 896527c..e4693e9 100644 --- a/DependenyInjection/DependencyInjection.php +++ b/DependenyInjection/DependencyInjection.php @@ -6,14 +6,14 @@ namespace DesignPatterns; * Dependency Injection * * Purpose: - * to implement a loosely coupled architecture in order to get better testable, maintainable and extandable code + * to implement a loosely coupled architecture in order to get better testable, maintainable and extendable code * * Examples: * - the Doctrine2 ORM uses dependency injection e.g. for Configuration that is injected into a Connection object. for * testing purposes, one can easily create a mock object of the configuration and inject that into the connection * object * - Symfony and Zend Framework 2 already have containers for DI that create objects via a configuration array and - * inject them where needed + * inject them where needed (i.e. in Controllers) * */ class Configuration @@ -60,4 +60,4 @@ class Connection $host = $this->_configuration->getHost(); // ... } -} \ No newline at end of file +}