From 401176ec806eabceffd68c01ea2e3cb60edbf526 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Fri, 25 Dec 2020 20:37:22 +0100 Subject: [PATCH] docker/l3d#58 Move project settings out of composer.json --- src/Plugin.php | 9 ++------- src/UpdateCommand.php | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index 2dc896c..16b615d 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -4,7 +4,6 @@ namespace LakeDrops\Docker4Drupal; use Composer\Script\Event; use Composer\Script\ScriptEvents; -use LakeDrops\Component\Composer\BaseHandlerInterface; use LakeDrops\Component\Composer\BasePlugin; /** @@ -15,7 +14,7 @@ class Plugin extends BasePlugin { /** * {@inheritdoc} */ - public function getHandlerClass(): BaseHandlerInterface { + public function getHandlerClass(): string { return Handler::class; } @@ -44,12 +43,8 @@ class Plugin extends BasePlugin { * * @param \Composer\Script\Event $event * The event that triggered the call of this function. - * - * @throws \Twig\Error\LoaderError - * @throws \Twig\Error\RuntimeError - * @throws \Twig\Error\SyntaxError */ - public function configureProject(Event $event) { + public function configureProject(Event $event): void { /** @var Handler $handler */ $handler = $this->handler; $handler diff --git a/src/UpdateCommand.php b/src/UpdateCommand.php index c5d0e94..d31572d 100644 --- a/src/UpdateCommand.php +++ b/src/UpdateCommand.php @@ -20,7 +20,7 @@ class UpdateCommand extends BaseCommand { /** * {@inheritdoc} */ - public function getHandlerClass(): BaseHandlerInterface { + public function getHandlerClass(): string { return Handler::class; } -- GitLab