| @@ 137-154 (lines=18) @@ | ||
| 134 | /** |
|
| 135 | * @throws Exception |
|
| 136 | */ |
|
| 137 | private function loadPlatforms() { |
|
| 138 | if ($this->platformsLoaded) { |
|
| 139 | return; |
|
| 140 | } |
|
| 141 | ||
| 142 | try { |
|
| 143 | $apps = $this->appManager->getInstalledApps(); |
|
| 144 | foreach ($apps as $appId) { |
|
| 145 | $this->loadPlatformsFromApp($appId); |
|
| 146 | } |
|
| 147 | ||
| 148 | $this->platformsLoaded = true; |
|
| 149 | } catch (Exception $e) { |
|
| 150 | $this->miscService->log($e->getMessage()); |
|
| 151 | throw $e; |
|
| 152 | } |
|
| 153 | ||
| 154 | } |
|
| 155 | ||
| 156 | ||
| 157 | /** |
|
| @@ 93-108 (lines=16) @@ | ||
| 90 | * |
|
| 91 | * @throws Exception |
|
| 92 | */ |
|
| 93 | private function loadProviders() { |
|
| 94 | if ($this->providersLoaded) { |
|
| 95 | return; |
|
| 96 | } |
|
| 97 | ||
| 98 | try { |
|
| 99 | $apps = $this->appManager->getInstalledApps(); |
|
| 100 | foreach ($apps as $appId) { |
|
| 101 | $this->loadProvidersFromApp($appId); |
|
| 102 | } |
|
| 103 | } catch (Exception $e) { |
|
| 104 | $this->miscService->log($e->getMessage()); |
|
| 105 | } |
|
| 106 | ||
| 107 | $this->providersLoaded = true; |
|
| 108 | } |
|
| 109 | ||
| 110 | ||
| 111 | /** |
|