Open5
awesome-laravelに載っているCodebaseなオープンソースプロジェクトを読む
の”Codebases for Reference”に書いてあるプロジェクトを読んでいくスレ
Cachet
まずはこれを読む
ここがなんでdispatchで実行できるんだろう
dispatch(new CreateIncidentCommand(
$name,
$this->fakerFactory->numberBetween(0, 3),
$message,
$this->fakerFactory->boolean,
null,
null,
false,
$this->fakerFactory->boolean,
$this->fakerFactory->date('Y-m-d H:i'),
null,
[],
$meta
));
これを見る限りdispatchされうる要素が見当たらん
executeっていう独自ヘルパなら見つかったけど・・・
if (!function_exists('execute')) {
/**
* Send the given command to the dispatcher for execution.
*
* @param object $command
*
* @return void
*/
function execute($command)
{
return app(Dispatcher::class)->dispatchNow($command);
}
}