From 42fa3abc3ef31d6bfebc29b76c8f55da45c1d16c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 8 Jan 2025 11:14:30 +0100 Subject: [PATCH] docs(eventbuilder): Mention how to get the EventBuilder from DI Signed-off-by: Joas Schilling --- lib/public/Calendar/ICalendarEventBuilder.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. *