lib/Service/CapabilitiesService.php 1 location
|
@@ 47-52 (lines=6) @@
|
| 44 |
|
private $capabilities; |
| 45 |
|
|
| 46 |
|
|
| 47 |
|
public function __construct(IConfig $config, IClientService $clientService, ICacheFactory $cacheFactory, IAppManager $appManager) { |
| 48 |
|
$this->config = $config; |
| 49 |
|
$this->clientService = $clientService; |
| 50 |
|
$this->cache = $cacheFactory->createDistributed('richdocuments'); |
| 51 |
|
$this->appManager = $appManager; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
public function getCapabilities() { |
| 55 |
|
if (!$this->capabilities) { |
lib/WOPI/DiscoveryManager.php 1 location
|
@@ 41-47 (lines=7) @@
|
| 38 |
|
/** @var string */ |
| 39 |
|
private $discovery; |
| 40 |
|
|
| 41 |
|
public function __construct(IClientService $clientService, |
| 42 |
|
ICacheFactory $cacheFactory, |
| 43 |
|
IConfig $config) { |
| 44 |
|
$this->clientService = $clientService; |
| 45 |
|
$this->cache = $cacheFactory->createDistributed('richdocuments'); |
| 46 |
|
$this->config = $config; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function get() { |
| 50 |
|
if ($this->discovery) { |