Skip to content

Commit

Permalink
Update supported Laravel verison (#15)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nuernbergerA authored Feb 8, 2020
1 parent 861800a commit d4db317
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 1 addition & 11 deletions src/Commands/Tinker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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));

Expand Down

0 comments on commit d4db317

Please sign in to comment.