Merge pull request #9521 from indygriffiths/patch-1

DOCS fix incorrect Injector YAML examples
This commit is contained in:
Loz Calver 2020-05-26 12:39:17 +01:00 committed by GitHub
commit d8819f8f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'