12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace OC;
- use OCP\IEventSource;
- use OCP\IEventSourceFactory;
- use OCP\IRequest;
- class EventSourceFactory implements IEventSourceFactory {
- private IRequest $request;
- public function __construct(IRequest $request) {
- $this->request = $request;
- }
-
- public function create(): IEventSource {
- return new \OC_EventSource($this->request);
- }
- }
|