From 0bbde0c19322510131782cfbd6b554b77d6e554b Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 8 Aug 2015 22:05:19 +0545 Subject: [PATCH] Dev App Container markup "new" keyword used as a verb --- developer_manual/app/container.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer_manual/app/container.rst b/developer_manual/app/container.rst index a2eeceb52..397e55e79 100644 --- a/developer_manual/app/container.rst +++ b/developer_manual/app/container.rst @@ -146,7 +146,7 @@ The container works in the following way: * The **database connection** is returned from the server container * Now **AuthorMapper** has all of its dependencies and the object is returned * **AuthorService** gets the **AuthorMapper** and returns the object -* **AuthorController** gets the **AuthorService** and finally the controller can be newed and the object is returned +* **AuthorController** gets the **AuthorService** and finally the controller can be ``new``ed and the object is returned So basically the container is used as a giant factory to build all the classes that are needed for the application. Because it centralizes all the creation of objects (the **new Class()** lines), it is very easy to add new constructor parameters without breaking existing code: only the **__construct** method and the container line where the **new** is being called need to be changed.