From b71de68f438e60925d302a5698cf0a0590e96b00 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 24 Jun 2020 13:00:22 +0200 Subject: Cleanup public api methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dashboard/lib/Controller/DashboardController.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'apps/dashboard') 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) { -- cgit v1.2.3