| @@ 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 |
|
| @@ 41-49 (lines=9) @@ | ||
| 38 | /** @var ISimpleFolder */ |
|
| 39 | private $appData; |
|
| 40 | ||
| 41 | public function __construct(IConfig $config, IClientService $clientService, IAppData $appData) { |
|
| 42 | $this->config = $config; |
|
| 43 | $this->clientService = $clientService; |
|
| 44 | try { |
|
| 45 | $this->appData = $appData->getFolder('richdocuments'); |
|
| 46 | } catch (NotFoundException $e) { |
|
| 47 | $this->appData = $appData->newFolder('richdocuments'); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | public function refretch() { |
|
| 52 | try { |
|