@@ 55-64 (lines=10) @@ | ||
52 | * @param ITimeFactory $timeFactory |
|
53 | * @throws \OCP\Files\NotPermittedException |
|
54 | */ |
|
55 | public function __construct(IConfig $config, IClientService $clientService, IAppData $appData, ITimeFactory $timeFactory) { |
|
56 | $this->config = $config; |
|
57 | $this->clientService = $clientService; |
|
58 | try { |
|
59 | $this->appData = $appData->getFolder('richdocuments'); |
|
60 | } catch (NotFoundException $e) { |
|
61 | $this->appData = $appData->newFolder('richdocuments'); |
|
62 | } |
|
63 | $this->timeFactory = $timeFactory; |
|
64 | } |
|
65 | ||
66 | public function getCapabilities() { |
|
67 | $collaboraCapabilities = $this->getCollaboraCapabilities(); |
@@ 52-65 (lines=14) @@ | ||
49 | * @param IL10N $l10n |
|
50 | * @param ITimeFactory $timeFactory |
|
51 | */ |
|
52 | public function __construct(IClientService $clientService, |
|
53 | IAppData $appData, |
|
54 | IConfig $config, |
|
55 | IL10N $l10n, |
|
56 | ITimeFactory $timeFactory) { |
|
57 | $this->clientService = $clientService; |
|
58 | try { |
|
59 | $this->appData = $appData->getFolder('richdocuments'); |
|
60 | } catch (NotFoundException $e) { |
|
61 | $this->appData = $appData->newFolder('richdocuments'); |
|
62 | } |
|
63 | $this->config = $config; |
|
64 | $this->timeFactory = $timeFactory; |
|
65 | } |
|
66 | ||
67 | public function get() { |
|
68 | // First check if there is a local valid discovery file |