diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-24 13:00:22 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-07-15 09:28:11 +0200 |
commit | b71de68f438e60925d302a5698cf0a0590e96b00 (patch) | |
tree | 26c180ec488be58dfd820e453eece7a94f33ea76 /apps/dashboard | |
parent | 66ce9ede91f4513f4ede97c48e67314038d8345d (diff) | |
download | nextcloud-server-b71de68f438e60925d302a5698cf0a0590e96b00.tar.gz nextcloud-server-b71de68f438e60925d302a5698cf0a0590e96b00.zip |
Cleanup public api methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 040f54a1f53..f753ad06f82 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -28,7 +28,7 @@ use OCP\AppFramework\Controller; use OCP\AppFramework\Http\TemplateResponse; use OCP\Dashboard\IManager; use OCP\Dashboard\IPanel; -use OCP\Dashboard\IRegisterPanelEvent; +use OCP\Dashboard\RegisterPanelEvent; use OCP\EventDispatcher\IEventDispatcher; use OCP\IInitialStateService; use OCP\IRequest; @@ -42,7 +42,13 @@ class DashboardController extends Controller { /** @var IManager */ private $dashboardManager; - public function __construct($appName, IRequest $request, IInitialStateService $initialStateService, IEventDispatcher $eventDispatcher, IManager $dashboardManager) { + public function __construct( + $appName, + IRequest $request, + IInitialStateService $initialStateService, + IEventDispatcher $eventDispatcher, + IManager $dashboardManager + ) { parent::__construct($appName, $request); $this->inititalStateService = $initialStateService; @@ -56,7 +62,7 @@ class DashboardController extends Controller { * @return TemplateResponse */ public function index(): TemplateResponse { - $this->eventDispatcher->dispatchTyped(new IRegisterPanelEvent($this->dashboardManager)); + $this->eventDispatcher->dispatchTyped(new RegisterPanelEvent($this->dashboardManager)); $dashboardManager = $this->dashboardManager; $panels = array_map(function (IPanel $panel) { |