Merge pull request #10068 from patricknelson/patch-8

This commit is contained in:
Guy Marriott 2021-08-25 15:27:19 -07:00 committed by GitHub
commit 7a68524ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,8 @@ By default, services registered with Injector do not inherit from one another; T
named services, which may not be actual classes, and thus should not behave as though they were. named services, which may not be actual classes, and thus should not behave as though they were.
Thus if you want an object to have the injected dependencies of a service of another name, you must Thus if you want an object to have the injected dependencies of a service of another name, you must
assign a reference to that service. assign a reference to that service. References are denoted by using a percent and dollar sign, like in the
YAML configuration example below.
```yaml ```yaml
SilverStripe\Core\Injector\Injector: SilverStripe\Core\Injector\Injector: