Skip to content

Commit ea6d2be

Browse files
authored
Commands Registrar
1 parent 2a505cf commit ea6d2be

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

app/console/Commands.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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, $scan=true): void
15+
{
16+
$console->register([
17+
ExampleCommand::class,
18+
]);
19+
}
20+
}

0 commit comments

Comments
 (0)