Pages affected
https://docs.silverstripe.org/en/5/developer_guides/extending/injector/#service-inheritance
Description
I am not sure if this is a issue of the documentation or a bug:
The documentation says that you can use App\GZIPJSONProvider: '%$App\JSONServiceDefinition' to define an alias for another class definition. This does not work.
If I read the code of the injector class correctly, using a string is just an shortcut for the class property. So omitting the '%$' prefix works but does not copy the definition.
And the second example does not contain the namespace...
Validations
Pages affected
https://docs.silverstripe.org/en/5/developer_guides/extending/injector/#service-inheritance
Description
I am not sure if this is a issue of the documentation or a bug:
The documentation says that you can use
App\GZIPJSONProvider: '%$App\JSONServiceDefinition'to define an alias for another class definition. This does not work.If I read the code of the injector class correctly, using a string is just an shortcut for the class property. So omitting the '%$' prefix works but does not copy the definition.
And the second example does not contain the namespace...
Validations