diff options
author | Joas Schilling <coding@schilljs.com> | 2025-01-08 11:14:30 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2025-01-08 11:14:30 +0100 |
commit | 42fa3abc3ef31d6bfebc29b76c8f55da45c1d16c (patch) | |
tree | 0fc63532ae78dca0f4f5878aca8224f523bc3c80 | |
parent | fdfeb99b76c90f1de91eaff441b79df6185e21ef (diff) | |
download | nextcloud-server-42fa3abc3ef31d6bfebc29b76c8f55da45c1d16c.tar.gz nextcloud-server-42fa3abc3ef31d6bfebc29b76c8f55da45c1d16c.zip |
docs(eventbuilder): Mention how to get the EventBuilder from DI
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/public/Calendar/ICalendarEventBuilder.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/public/Calendar/ICalendarEventBuilder.php b/lib/public/Calendar/ICalendarEventBuilder.php index 88b8f06b60a..8afc817a61e 100644 --- a/lib/public/Calendar/ICalendarEventBuilder.php +++ b/lib/public/Calendar/ICalendarEventBuilder.php @@ -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. * |