for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Infrastructure;
use Illuminate\Contracts\Events\Dispatcher;
final class LaravelMultiDispatcher implements MultiDispatcher
{
/** @var Dispatcher */
private $dispatcher;
public function __construct(Dispatcher $dispatcher)
$this->dispatcher = $dispatcher;
}
public function multiDispatch(array $events)
foreach($events as $event)
$this->dispatcher->dispatch($event);