diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-29 15:52:47 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-03 14:37:46 +0200 |
commit | 4a3ea04baaa67f2cbf23c3d9f776373adad375a9 (patch) | |
tree | 148892dbdefd211681d03041bdfc9a35f7e86a33 /apps/dav | |
parent | 0825530a1b1cbb98195ec15cbbd46d121bc65373 (diff) | |
download | nextcloud-server-4a3ea04baaa67f2cbf23c3d9f776373adad375a9.tar.gz nextcloud-server-4a3ea04baaa67f2cbf23c3d9f776373adad375a9.zip |
Callable parameter injection
This is like what we have to DI and classes, but for callables.
The motivating factor is to get rid of *service locators* in the `boot`
method of apps as a new pattern is about to emerge where we have lots of
`query` calls on the app or server container in order to fetch some
services.
With this little helper it's possible to call another (public) method
and magically have everything injected.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav')
0 files changed, 0 insertions, 0 deletions