mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS create() makes objects not classes.
Thanks to Matthew at Cabbage Tree Creative for reporting.
This commit is contained in:
parent
912b133ba1
commit
ea16aca74b
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user