mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
docs(eventbuilder): Mention how to get the EventBuilder from DI
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fdfeb99b76
commit
42fa3abc3e
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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue