-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45375 from nextcloud/fix/move-eventsource-to-oc
Move EventSource to `OC` namespace
- Loading branch information
Showing
5 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2023 Daniel Kesselberg <[email protected]> | ||
* | ||
|
@@ -27,20 +30,12 @@ | |
use OCP\IRequest; | ||
|
||
class EventSourceFactory implements IEventSourceFactory { | ||
private IRequest $request; | ||
|
||
|
||
public function __construct(IRequest $request) { | ||
$this->request = $request; | ||
public function __construct( | ||
private IRequest $request, | ||
) { | ||
} | ||
|
||
/** | ||
* Create a new event source | ||
* | ||
* @return IEventSource | ||
* @since 28.0.0 | ||
*/ | ||
public function create(): IEventSource { | ||
return new \OC_EventSource($this->request); | ||
return new EventSource($this->request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters