-
Notifications
You must be signed in to change notification settings - Fork 349
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
Allow for custom iTipBroker #1559
Allow for custom iTipBroker #1559
Conversation
lib/CalDAV/Schedule/Plugin.php
Outdated
/** | ||
* Returns an instance of the iTip\Broker | ||
* | ||
* @return Broker |
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.
Needs an import and please use a return type hint
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.
Looks good now!
@phil-davis I hope this change makes sense. We add the protected factory method so that sub classes of the plugin can work with a sub-classed broker as well. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1559 +/- ##
=========================================
Coverage 97.24% 97.24%
- Complexity 2834 2836 +2
=========================================
Files 175 175
Lines 8843 8852 +9
=========================================
+ Hits 8599 8608 +9
Misses 244 244 ☔ View full report in Codecov by Sentry. |
@SebastianKrupinski can you please fix the issue raised by cs-fixer? THX |
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
cd9edc4
to
b64d2aa
Compare
@DeepDiver1975 Done. |
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Allow for custom iTipBroker (#1559) [4.6]
Uses a protected function to generate the iTipBroker so that is can be overriden and used to generate a custom broker class.