mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9521 from indygriffiths/patch-1
DOCS fix incorrect Injector YAML examples
This commit is contained in:
commit
d8819f8f18
@ -110,10 +110,10 @@ The [Configuration YAML](../configuration) does the hard work of configuring tho
|
||||
**app/_config/app.yml**
|
||||
|
||||
```yml
|
||||
Injector:
|
||||
SilverStripe\Core\Injector\Injector:
|
||||
PermissionService:
|
||||
class: MyCustomPermissionService
|
||||
MyController
|
||||
MyController:
|
||||
properties:
|
||||
textProperty: 'My Text Value'
|
||||
```
|
||||
@ -249,7 +249,7 @@ SilverStripe\Core\Injector\Injector:
|
||||
class: RestrictivePermissionService
|
||||
properties:
|
||||
database: %$MySQLDatabase
|
||||
MySQLDatabase
|
||||
MySQLDatabase:
|
||||
constructor:
|
||||
0: 'dbusername'
|
||||
1: 'dbpassword'
|
||||
|
Loading…
Reference in New Issue
Block a user