Files
LaravelSkeletonAPI/app/Kernel/Feature/HasCommandsList.php
2026-01-05 16:33:20 +04:00

16 lines
285 B
PHP

<?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);
}
}
}