Skeleton is ready
This commit is contained in:
15
app/Kernel/Feature/HasCommandsList.php
Normal file
15
app/Kernel/Feature/HasCommandsList.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Kernel\Feature;
|
||||
|
||||
trait HasCommandsList
|
||||
{
|
||||
public function registerCommands(): void
|
||||
{
|
||||
if (isset($this->commandsList) && method_exists($this, 'commands')) {
|
||||
$this->commands($this->commandsList);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user