diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-10-03 10:45:09 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-10-03 10:45:09 +0300 |
commit | da3b449169bc0ce0c6c2e2bb06f1d971234e536d (patch) | |
tree | 2d9c3723a5bede6d893dabce77b7b2a99c96bd01 /lib | |
parent | 07df8339d24e8c2e15ff7582ba8dd5260ea98a67 (diff) |
using AppManager - #390
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/PlatformService.php | 7 | ||||
-rw-r--r-- | lib/Service/ProviderService.php | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/Service/PlatformService.php b/lib/Service/PlatformService.php index 6a276ea..304116d 100644 --- a/lib/Service/PlatformService.php +++ b/lib/Service/PlatformService.php @@ -21,14 +21,13 @@ * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * + * */ namespace OCA\FullTextSearch\Service; use Exception; use OC\App\AppManager; -use OC_App; use OCA\FullTextSearch\Exceptions\PlatformDoesNotExistException; use OCA\FullTextSearch\Exceptions\PlatformIsNotCompatibleException; use OCA\FullTextSearch\Exceptions\PlatformNotSelectedException; @@ -194,7 +193,7 @@ class PlatformService { * @param string $appId */ private function loadPlatformsFromApp($appId) { - $appInfo = OC_App::getAppInfo($appId); + $appInfo = $this->appManager->getAppInfo($appId); if (!is_array($appInfo) || !key_exists('fulltextsearch', $appInfo) || !key_exists('platform', $appInfo['fulltextsearch'])) { return; @@ -209,4 +208,4 @@ class PlatformService { } -}
\ No newline at end of file +} diff --git a/lib/Service/ProviderService.php b/lib/Service/ProviderService.php index 52d5143..ac120f3 100644 --- a/lib/Service/ProviderService.php +++ b/lib/Service/ProviderService.php @@ -28,7 +28,6 @@ namespace OCA\FullTextSearch\Service; use Exception; use OC\App\AppManager; -use OC_App; use OCA\FullTextSearch\Exceptions\ProviderDoesNotExistException; use OCA\FullTextSearch\Exceptions\ProviderIsNotCompatibleException; use OCA\FullTextSearch\Exceptions\ProviderIsNotUniqueException; @@ -236,7 +235,7 @@ class ProviderService { * @throws QueryException */ private function loadProvidersFromApp($appId) { - $appInfo = OC_App::getAppInfo($appId); + $appInfo = $this->appManager->getAppInfo($appId); if (!is_array($appInfo) || !key_exists('fulltextsearch', $appInfo) || !key_exists('provider', $appInfo['fulltextsearch'])) { return; @@ -298,4 +297,4 @@ class ProviderService { return $arr; } -}
\ No newline at end of file +} |