Skip to content

Commit 5625217

Browse files
committed
🔖 Prepping for release
1 parent 3306ed2 commit 5625217

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

App/Console/ExampleCommand.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
55

66
class ExampleCommand extends Command
77
{
8-
public $name = "example";
9-
public $description = "example command's description";
10-
public $help = "example command's help";
8+
protected static $defaultName = "example";
9+
private $description = "example command's description";
10+
private $help = "example command's help";
1111

12-
public function config()
12+
protected function configure()
1313
{
14-
// you can add arguments and options in the config method
1514
$this
16-
->setArgument("argument", "required", "argument description")
15+
->setArgument("argument", "optional", "argument description")
1716
->setOption("option", "o", "required", "option description");
1817
}
1918

20-
public function handle()
19+
protected function handle()
2120
{
2221
$this->comment(
2322
"example command's output {$this->argument('argument')} {$this->option('option')}"

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
}
2020
],
2121
"require": {
22-
"leafs/leaf": "^2.4",
23-
"leafs/aloe": "^1.0",
22+
"leafs/leaf": "^2.4.2-beta",
23+
"leafs/aloe": "^1.1.0-beta",
2424
"doctrine/dbal": "^2.9",
25-
"illuminate/console": "^6.3",
25+
"illuminate/console": "^8.0",
2626
"psy/psysh": "^0.9.9",
27-
"symfony/console": "^4.3",
27+
"symfony/console": "^5.1",
2828
"vlucas/phpdotenv": "^3.6"
2929
},
3030
"require-dev": {

0 commit comments

Comments
 (0)