-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(IRegistrationContext): Use SimpleContainer in registerService factory #58261
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
|
|
||
| namespace OCP\AppFramework\Bootstrap; | ||
|
|
||
| use OC\AppFramework\Utility\SimpleContainer; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noticed but this is in OC, so using that in OCP is bad :(
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's see if it breaks something, then we can revert it 🙈
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It breaks our policy that OCP should not expose OC |
||
| use OCP\AppFramework\IAppContainer; | ||
| use OCP\Authentication\TwoFactorAuth\IProvider; | ||
| use OCP\Calendar\ICalendarProvider; | ||
|
|
@@ -68,7 +69,7 @@ public function registerDashboardWidget(string $widgetClass): void; | |
| * | ||
| * @param string $name | ||
| * @param callable $factory | ||
| * @psalm-param callable(\Psr\Container\ContainerInterface): mixed $factory | ||
| * @psalm-param callable(SimpleContainer): mixed $factory | ||
| * @param bool $shared If set to true the factory result will be cached otherwise every query will call the factory again | ||
| * | ||
| * @return void | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.