Illuminate\Support\ServiceProvider::commands PHP 메소드

commands() 공개 메소드

Register the package's custom Artisan commands.
public commands ( array | mixed $commands ) : void
$commands array | mixed
리턴 void
    public function commands($commands)
    {
        $commands = is_array($commands) ? $commands : func_get_args();
        Artisan::starting(function ($artisan) use($commands) {
            $artisan->resolveCommands($commands);
        });
    }