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**
|
**app/_config/app.yml**
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
Injector:
|
SilverStripe\Core\Injector\Injector:
|
||||||
PermissionService:
|
PermissionService:
|
||||||
class: MyCustomPermissionService
|
class: MyCustomPermissionService
|
||||||
MyController
|
MyController:
|
||||||
properties:
|
properties:
|
||||||
textProperty: 'My Text Value'
|
textProperty: 'My Text Value'
|
||||||
```
|
```
|
||||||
@ -249,7 +249,7 @@ SilverStripe\Core\Injector\Injector:
|
|||||||
class: RestrictivePermissionService
|
class: RestrictivePermissionService
|
||||||
properties:
|
properties:
|
||||||
database: %$MySQLDatabase
|
database: %$MySQLDatabase
|
||||||
MySQLDatabase
|
MySQLDatabase:
|
||||||
constructor:
|
constructor:
|
||||||
0: 'dbusername'
|
0: 'dbusername'
|
||||||
1: 'dbpassword'
|
1: 'dbpassword'
|
||||||
|
Loading…
Reference in New Issue
Block a user