diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-08 15:13:06 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-08 21:26:04 +0100 |
commit | f07d3a3b5507c99639158fbea4583a7bd5885100 (patch) | |
tree | 1f9862be3773735e5fec91d9f58263fde2f002c9 /settings/Controller | |
parent | 26e0c14c6d90adae72797e759024d140047b827c (diff) | |
download | nextcloud-server-f07d3a3b5507c99639158fbea4583a7bd5885100.tar.gz nextcloud-server-f07d3a3b5507c99639158fbea4583a7bd5885100.zip |
Link to NC 14 dev manual
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index cd34edf567c..325b6a0daf0 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -47,6 +47,7 @@ use OCP\INavigationManager; use OCP\IRequest; use OCP\IL10N; use OCP\IConfig; +use OCP\IURLGenerator; use OCP\L10N\IFactory; /** @@ -77,6 +78,8 @@ class AppSettingsController extends Controller { private $bundleFetcher; /** @var Installer */ private $installer; + /** @var IURLGenerator */ + private $urlGenerator; /** * @param string $appName @@ -90,8 +93,9 @@ class AppSettingsController extends Controller { * @param IFactory $l10nFactory * @param BundleFetcher $bundleFetcher * @param Installer $installer + * @param IURLGenerator $urlGenerator */ - public function __construct($appName, + public function __construct(string $appName, IRequest $request, IL10N $l10n, IConfig $config, @@ -101,7 +105,8 @@ class AppSettingsController extends Controller { AppFetcher $appFetcher, IFactory $l10nFactory, BundleFetcher $bundleFetcher, - Installer $installer) { + Installer $installer, + IURLGenerator $urlGenerator) { parent::__construct($appName, $request); $this->l10n = $l10n; $this->config = $config; @@ -112,6 +117,7 @@ class AppSettingsController extends Controller { $this->l10nFactory = $l10nFactory; $this->bundleFetcher = $bundleFetcher; $this->installer = $installer; + $this->urlGenerator = $urlGenerator; } /** @@ -128,6 +134,7 @@ class AppSettingsController extends Controller { $params = []; $params['category'] = $category; $params['appstoreEnabled'] = $this->config->getSystemValue('appstoreenabled', true) === true; + $params['urlGenerator'] = $this->urlGenerator; $this->navigationManager->setActiveEntry('core_apps'); $templateResponse = new TemplateResponse($this->appName, 'apps', $params, 'user'); |