Console Commands
Console commands for managing Ecotone message consumers and projections
Commands with Arguments
class EmailSender
{
#[ConsoleCommand('sendEmail')]
public function execute(string $email, string $type): void
{
}
}Executing Command
bin/console sendEmail "test@example.com" "welcome"php artisan sendEmail "test@example.com" "welcome"$messagingSystem->runConsoleCommand(
'sendEmail',
[
"email" => "test@example.com",
"type" => "welcome"
]
)Command Description
Commands with Options
Executing Command
Providing default values
Executing Command
Array of Options
Executing Command
Passing Services
Passing Message Headers
Executing Command
Writing to the Console
Tables
Progress Bars
Testing Console Output
Database Transaction
Last updated
Was this helpful?