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**
```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'