-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Decouple resource provider registration #17325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e325b69 to
67627b7
Compare
| /** | ||
| * @param string $provider | ||
| * @since 16.0.0 | ||
| * @deprecated 18.0.0 Use IProviderManager::registerResourceProvider instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add to Critical changes for developers & admins for Nextcloud 18 #17131 once merged
|
I like the idea. Small services are good services. You'll get bonus points if you add tests 😉 |
222aaed to
cf37455
Compare
ChristophWurst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
645c6c0 to
0a560d0
Compare
0a560d0 to
f32fe02
Compare
|
Hello @rullzer @juliushaertl 🏓 |
juliusknorr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
f32fe02 to
3a81e22
Compare
|
CI seems happy except for then the DB dies. Let's get this in! |
|
@kesselb mind squashing the commits? |
43da4c9 to
2dc292d
Compare
2dc292d to
df51338
Compare
|
CI don't like me today ;) Could someone of you press merge? |
df51338 to
496af16
Compare
nickvergessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small little fixes needed because we updated phpunit in the meantime
058534d to
3ad4295
Compare
3ad4295 to
be54491
Compare
be54491 to
3f20653
Compare
Signed-off-by: Daniel Kesselberg <[email protected]>
3f20653 to
0016480
Compare

server/apps/files/lib/AppInfo/Application.php
Lines 88 to 89 in a0d48c5
Apps can register their own
ResourceProvider. For now they get aOC\Collaboration\Resources\Managerinstance withIDBConnectionas dependency. But a database connection is not required forregisterResourceProvider. This pr extract the register and provider resolver functionality. I don't know if there are some naming conventions. Feel free to suggest better names ;)Discovered this while debugging #13712.