Skip to content

Commit

Permalink
docs(eventbuilder): Mention how to get the EventBuilder from DI
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jan 8, 2025
1 parent fdfeb99 commit 42fa3ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/public/Calendar/ICalendarEventBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
/**
* The calendar event builder can be used to conveniently build a calendar event and then serialize
* it to a ICS string. The ICS string can be submitted to calendar instances implementing the
* \OCP\Calendar\ICreateFromString interface.
* {@see \OCP\Calendar\ICreateFromString} interface.
*
* Also note this class can not be injected directly with dependency injection.
* Instead, inject {@see \OCP\Calendar\IManager} and use
* {@see \OCP\Calendar\IManager::createEventBuilder()} afterwards.
*
* All setters return self to allow chaining method calls.
*
Expand Down

0 comments on commit 42fa3ab

Please sign in to comment.