We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 132633c + 6565df9 commit 12baa45Copy full SHA for 12baa45
app/console/Commands.php
@@ -0,0 +1,20 @@
1
+<?php
2
+
3
+namespace App\Console;
4
5
+class Commands
6
+{
7
+ /**
8
+ * Register commands
9
+ *
10
+ * @param $console
11
+ * @return void
12
13
+ */
14
+ public static function register($console): void
15
+ {
16
+ $console->register([
17
+ ExampleCommand::class,
18
+ ]);
19
+ }
20
+}
leaf
@@ -60,7 +60,7 @@ $console = new \Aloe\Console('Leaf MVC', 'v3.5.0');
60
| Add custom commands
61
|
62
*/
63
-$console->register(\App\Console\ExampleCommand::class);
+\App\Console\Commands::register($console);
64
65
/*
66
|--------------------------------------------------------------------------
0 commit comments