mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4467 from camfindlay/patch-28
DOCS create() makes objects not classes.
This commit is contained in:
commit
4485b266e2
@ -31,7 +31,7 @@ The benefit of constructing objects through this syntax is `ClassName` can be sw
|
||||
MyClassName:
|
||||
class: MyBetterClassName
|
||||
|
||||
Repeated calls to `create()` create a new class each time.
|
||||
Repeated calls to `create()` create a new object each time.
|
||||
|
||||
:::php
|
||||
$object = Injector::inst()->create('MyClassName');
|
||||
|
Loading…
Reference in New Issue
Block a user