mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10068 from patricknelson/patch-8
This commit is contained in:
commit
7a68524ee2
@ -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.
|
||||
|
||||
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
|
||||
SilverStripe\Core\Injector\Injector:
|
||||
|
Loading…
Reference in New Issue
Block a user