Skip to content

Commit 42fa3ab

Browse files
committed
docs(eventbuilder): Mention how to get the EventBuilder from DI
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent fdfeb99 commit 42fa3ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/public/Calendar/ICalendarEventBuilder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
/**
1717
* The calendar event builder can be used to conveniently build a calendar event and then serialize
1818
* it to a ICS string. The ICS string can be submitted to calendar instances implementing the
19-
* \OCP\Calendar\ICreateFromString interface.
19+
* {@see \OCP\Calendar\ICreateFromString} interface.
20+
*
21+
* Also note this class can not be injected directly with dependency injection.
22+
* Instead, inject {@see \OCP\Calendar\IManager} and use
23+
* {@see \OCP\Calendar\IManager::createEventBuilder()} afterwards.
2024
*
2125
* All setters return self to allow chaining method calls.
2226
*

0 commit comments

Comments
 (0)