forked from deblan/side_menu
Merge pull request 'Remove deprecated method' (#267) from vitormattos/side_menu:feature/remove-deprecated-method into develop
Reviewed-on: deblan/side_menu#267
This commit is contained in:
commit
0b3d2d9781
|
@ -3,6 +3,7 @@
|
||||||
namespace OCA\SideMenu\Service;
|
namespace OCA\SideMenu\Service;
|
||||||
|
|
||||||
use OC\User\User;
|
use OC\User\User;
|
||||||
|
use OCP\INavigationManager;
|
||||||
use OCP\L10N\IFactory;
|
use OCP\L10N\IFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,6 +35,7 @@ class AppRepository
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
\OC_App $ocApp,
|
\OC_App $ocApp,
|
||||||
|
protected INavigationManager $navigationManager,
|
||||||
IFactory $l10nFactory,
|
IFactory $l10nFactory,
|
||||||
ConfigProxy $config,
|
ConfigProxy $config,
|
||||||
CategoryRepository $categoryRepository
|
CategoryRepository $categoryRepository
|
||||||
|
@ -51,7 +53,7 @@ class AppRepository
|
||||||
*/
|
*/
|
||||||
public function getVisibleApps()
|
public function getVisibleApps()
|
||||||
{
|
{
|
||||||
$navigation = $this->ocApp->getNavigation();
|
$navigation = $this->navigationManager->getAll();
|
||||||
$appCategoriesCustom = $this->config->getAppValueArray('apps-categories-custom', '[]');
|
$appCategoriesCustom = $this->config->getAppValueArray('apps-categories-custom', '[]');
|
||||||
$categories = $this->categoryRepository->getOrderedCategories();
|
$categories = $this->categoryRepository->getOrderedCategories();
|
||||||
$apps = $this->ocApp->listAllApps();
|
$apps = $this->ocApp->listAllApps();
|
||||||
|
|
Loading…
Reference in a new issue