From d4db3174036ae5f758ed4e96d73bee5119461064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20N=C3=BCrnberger?= Date: Sat, 8 Feb 2020 16:27:39 +0100 Subject: [PATCH] Update supported Laravel verison (#15) * drop dev requirements * only support laravel 5.8 and 6.x * removed deprecated method * remove unused construct * added support for 5.5 up to 6.x, reinclude testbench for autocomplete --- composer.json | 8 ++++---- src/Commands/Tinker.php | 12 +----------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/composer.json b/composer.json index cf959ca..9c497bf 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ "require": { "php": ">=5.6.0", "botman/botman": "~2.0", - "clue/stdio-react": "~1.1.0 | ^2.0", - "illuminate/support": "~5.0" + "clue/stdio-react": "^2.0", + "illuminate/support": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0", + "illuminate/console": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0" }, "require-dev": { - "orchestra/testbench": "~3.0", - "phpunit/phpunit": "~5.0" + "orchestra/testbench": "^3.5 || ^3.6 || ^3.7 || ^3.8 || ^4.0" }, "autoload": { "psr-4": { diff --git a/src/Commands/Tinker.php b/src/Commands/Tinker.php index 0ebae13..f66b3d7 100644 --- a/src/Commands/Tinker.php +++ b/src/Commands/Tinker.php @@ -25,16 +25,6 @@ class Tinker extends Command */ protected $description = 'Tinker around with BotMan.'; - /** - * Create a new command instance. - * - * @return void - */ - public function __construct() - { - parent::__construct(); - } - /** * Execute the console command. * @@ -51,7 +41,7 @@ public function handle() $botman = BotManFactory::create($config, new ArrayCache()); $stdio = new Stdio($loop); - $stdio->getReadline()->setPrompt('You: '); + $stdio->setPrompt('You: '); $botman->setDriver(new ConsoleDriver($config, $stdio));