diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 8849a3d..a207681 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -72,7 +72,7 @@ class Application extends App $container = $this->getContainer(); $container->registerService('AppRepository', function (ContainerInterface $c) { - return new AppRepository(new OC_App()); + return new AppRepository(); }); $container->registerService('ConfigProxy', function (ContainerInterface $c) { diff --git a/lib/Service/AppRepository.php b/lib/Service/AppRepository.php index 736d4ec..93c8f9c 100644 --- a/lib/Service/AppRepository.php +++ b/lib/Service/AppRepository.php @@ -2,7 +2,6 @@ namespace OCA\SideMenu\Service; -use OC_App; use OCP\L10N\IFactory; /** @@ -13,7 +12,7 @@ use OCP\L10N\IFactory; class AppRepository { /** - * @var OC_App + * @var \OC_App */ protected $ocApp; @@ -22,7 +21,7 @@ class AppRepository */ protected $l10nFactory; - public function __construct(OC_App $ocApp, IFactory $l10nFactory) + public function __construct(\OC_App $ocApp, IFactory $l10nFactory) { $this->ocApp = $ocApp; $this->l10nFactory = $l10nFactory;