From 52aaf3acfeb1eb6d767e1f92c0bb7190aa0ab6ff Mon Sep 17 00:00:00 2001 From: VBoss Date: Mon, 11 Jan 2021 11:23:49 +0100 Subject: [PATCH 1/2] cs fix --- src/CliRouter.php | 8 ++++---- src/DI/ClassAliasMap.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CliRouter.php b/src/CliRouter.php index c328993..c7d37e7 100644 --- a/src/CliRouter.php +++ b/src/CliRouter.php @@ -73,11 +73,11 @@ public function match(\Nette\Http\IRequest $httpRequest): ?array } return [ - 'action' => 'default', - 'method' => \Kdyby\Console\Application::CLI_SAPI, + 'action' => 'default', + 'method' => \Kdyby\Console\Application::CLI_SAPI, 'presenter' => \KdybyModule\CliPresenter::NAME, - 'input' => $input, - 'output' => $output, + 'input' => $input, + 'output' => $output, ]; } diff --git a/src/DI/ClassAliasMap.php b/src/DI/ClassAliasMap.php index 7a1c131..14ca8eb 100644 --- a/src/DI/ClassAliasMap.php +++ b/src/DI/ClassAliasMap.php @@ -3,8 +3,8 @@ declare(strict_types = 1); return [ - \Kdyby\Console\Exception::class => \Kdyby\Console\Exception\Exception::class, - \Kdyby\Console\InvalidApplicationModeException::class => \Kdyby\Console\Exception\InvalidApplicationModeException::class, - \Kdyby\Console\InvalidArgumentException::class => \Kdyby\Console\Exception\InvalidArgumentException::class, - \Kdyby\Console\InvalidStateException::class => \Kdyby\Console\Exception\InvalidStateException::class, + \Kdyby\Console\Exception::class => \Kdyby\Console\Exception\Exception::class, + \Kdyby\Console\InvalidApplicationModeException::class => \Kdyby\Console\Exception\InvalidApplicationModeException::class, + \Kdyby\Console\InvalidArgumentException::class => \Kdyby\Console\Exception\InvalidArgumentException::class, + \Kdyby\Console\InvalidStateException::class => \Kdyby\Console\Exception\InvalidStateException::class, ]; From aef4b6108aa9774b412661fea493ac2c95486e39 Mon Sep 17 00:00:00 2001 From: VBoss Date: Mon, 11 Jan 2021 15:25:12 +0100 Subject: [PATCH 2/2] nette/application 3.1.0 has deprecation issue --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 92332bd..977da89 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "symfony/console": "~2.3 || ^3.0 || < 4.3" }, "require-dev": { - "nette/application": "^3.0", + "nette/application": "3.0.*", "nette/bootstrap": "^2.4.5 || ^3.0", "nette/caching": "^2.5 || ^3.0", "nette/http": "^3.0",