summaryrefslogtreecommitdiffstats
path: root/apps/accessibility
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-11 22:17:53 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-11 22:26:40 +0100
commitf2ed6df9c4e0d1dd1262a60cfbd7a22749397d39 (patch)
tree0811491dd8aa9f69e65dd4706886cb576ae8c7d1 /apps/accessibility
parentfec679dd8d38862b8039034b28d6deaf0d7ab51b (diff)
downloadnextcloud-server-f2ed6df9c4e0d1dd1262a60cfbd7a22749397d39.tar.gz
nextcloud-server-f2ed6df9c4e0d1dd1262a60cfbd7a22749397d39.zip
Pimp the accesibility controller
* No usused members * appRoot member * less constructor args Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/accessibility')
-rw-r--r--apps/accessibility/lib/Controller/AccessibilityController.php35
1 files changed, 4 insertions, 31 deletions
diff --git a/apps/accessibility/lib/Controller/AccessibilityController.php b/apps/accessibility/lib/Controller/AccessibilityController.php
index 5c732816b8a..d455283dbaf 100644
--- a/apps/accessibility/lib/Controller/AccessibilityController.php
+++ b/apps/accessibility/lib/Controller/AccessibilityController.php
@@ -42,8 +42,6 @@ use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IRequest;
-use OCP\IURLGenerator;
-use OCP\IUserManager;
use OCP\IUserSession;
use ScssPhp\ScssPhp\Compiler;
use ScssPhp\ScssPhp\Exception\ParserException;
@@ -60,24 +58,15 @@ class AccessibilityController extends Controller {
/** @var IConfig */
private $config;
- /** @var IUserManager */
- private $userManager;
-
/** @var ILogger */
private $logger;
- /** @var IURLGenerator */
- private $urlGenerator;
-
/** @var ITimeFactory */
protected $timeFactory;
/** @var IUserSession */
private $userSession;
- /** @var IAppManager */
- private $appManager;
-
/** @var IconsCacher */
protected $iconsCacher;
@@ -87,26 +76,13 @@ class AccessibilityController extends Controller {
/** @var null|string */
private $injectedVariables;
- /**
- * Account constructor.
- *
- * @param string $appName
- * @param IRequest $request
- * @param IConfig $config
- * @param IUserManager $userManager
- * @param ILogger $logger
- * @param IURLGenerator $urlGenerator
- * @param ITimeFactory $timeFactory
- * @param IUserSession $userSession
- * @param IAppManager $appManager
- * @param \OC_Defaults $defaults
- */
+ /** @var string */
+ private $appRoot;
+
public function __construct(string $appName,
IRequest $request,
IConfig $config,
- IUserManager $userManager,
ILogger $logger,
- IURLGenerator $urlGenerator,
ITimeFactory $timeFactory,
IUserSession $userSession,
IAppManager $appManager,
@@ -115,17 +91,14 @@ class AccessibilityController extends Controller {
parent::__construct($appName, $request);
$this->appName = $appName;
$this->config = $config;
- $this->userManager = $userManager;
$this->logger = $logger;
- $this->urlGenerator = $urlGenerator;
$this->timeFactory = $timeFactory;
$this->userSession = $userSession;
- $this->appManager = $appManager;
$this->iconsCacher = $iconsCacher;
$this->defaults = $defaults;
$this->serverRoot = \OC::$SERVERROOT;
- $this->appRoot = $this->appManager->getAppPath($this->appName);
+ $this->appRoot = $appManager->getAppPath($this->appName);
}
/**