docs(eventbuilder): Mention how to get the EventBuilder from DI

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/49888/head
Joas Schilling 2025-01-08 11:14:30 +07:00
parent fdfeb99b76
commit 42fa3abc3e
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with 5 additions and 1 deletions

@ -16,7 +16,11 @@ use OCP\Calendar\Exceptions\CalendarException;
/**
* 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.
*