| @@ 79-94 (lines=16) @@ | ||
| 76 | * |
|
| 77 | * @throws Exception |
|
| 78 | */ |
|
| 79 | private function loadProviders() { |
|
| 80 | if ($this->providersLoaded) { |
|
| 81 | return; |
|
| 82 | } |
|
| 83 | ||
| 84 | try { |
|
| 85 | $apps = $this->appManager->getInstalledApps(); |
|
| 86 | foreach ($apps as $appId) { |
|
| 87 | $this->loadProvidersFromApp($appId); |
|
| 88 | } |
|
| 89 | } catch (Exception $e) { |
|
| 90 | $this->miscService->log($e->getMessage()); |
|
| 91 | } |
|
| 92 | ||
| 93 | $this->providersLoaded = true; |
|
| 94 | } |
|
| 95 | ||
| 96 | ||
| 97 | /** |
|
| @@ 126-143 (lines=18) @@ | ||
| 123 | /** |
|
| 124 | * @throws Exception |
|
| 125 | */ |
|
| 126 | private function loadPlatforms() { |
|
| 127 | if ($this->platformsLoaded) { |
|
| 128 | return; |
|
| 129 | } |
|
| 130 | ||
| 131 | try { |
|
| 132 | $apps = $this->appManager->getInstalledApps(); |
|
| 133 | foreach ($apps as $appId) { |
|
| 134 | $this->loadPlatformsFromApp($appId); |
|
| 135 | } |
|
| 136 | ||
| 137 | $this->platformsLoaded = true; |
|
| 138 | } catch (Exception $e) { |
|
| 139 | $this->miscService->log($e->getMessage()); |
|
| 140 | throw $e; |
|
| 141 | } |
|
| 142 | ||
| 143 | } |
|
| 144 | ||
| 145 | ||
| 146 | /** |
|