DOCS create() makes objects not classes.

Thanks to Matthew at Cabbage Tree Creative for reporting.
This commit is contained in:
Cam Findlay 2015-08-03 12:50:24 +12:00
parent 912b133ba1
commit ea16aca74b

View File

@ -31,7 +31,7 @@ The benefit of constructing objects through this syntax is `ClassName` can be sw
MyClassName: MyClassName:
class: MyBetterClassName class: MyBetterClassName
Repeated calls to `create()` create a new class each time. Repeated calls to `create()` create a new object each time.
:::php :::php
$object = Injector::inst()->create('MyClassName'); $object = Injector::inst()->create('MyClassName');