diff options
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 84860f8c494..f98ee051a32 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -211,6 +211,7 @@ use OCP\IBinaryFinder; use OCP\IDateTimeFormatter; use OCP\IDateTimeZone; use OCP\IDBConnection; +use OCP\IEventSourceFactory; use OCP\IGroupManager; use OCP\IInitialStateService; use OCP\IL10N; @@ -1467,6 +1468,8 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias(ISpeechToTextManager::class, SpeechToTextManager::class); + $this->registerAlias(IEventSourceFactory::class, EventSourceFactory::class); + $this->connectDispatcher(); } @@ -1929,16 +1932,6 @@ class Server extends ServerContainer implements IServerContainer { } /** - * Create a new event source - * - * @return \OCP\IEventSource - * @deprecated 20.0.0 - */ - public function createEventSource() { - return new \OC_EventSource(); - } - - /** * Get the active event logger * * The returned logger only logs data when debug mode is enabled |