This commit is contained in:
Paolo A
2024-08-13 13:44:16 +00:00
parent 1bbb23088d
commit e796d76612
4001 changed files with 30101 additions and 40075 deletions

View File

@@ -12,7 +12,7 @@ class NullDispatcher implements DispatcherContract
/**
* The underlying event dispatcher instance.
*
* @var \Illuminate\Contracts\Bus\Dispatcher
* @var \Illuminate\Contracts\Events\Dispatcher
*/
protected $dispatcher;
@@ -37,6 +37,7 @@ class NullDispatcher implements DispatcherContract
*/
public function dispatch($event, $payload = [], $halt = false)
{
//
}
/**
@@ -48,6 +49,7 @@ class NullDispatcher implements DispatcherContract
*/
public function push($event, $payload = [])
{
//
}
/**
@@ -59,16 +61,17 @@ class NullDispatcher implements DispatcherContract
*/
public function until($event, $payload = [])
{
//
}
/**
* Register an event listener with the dispatcher.
*
* @param string|array $events
* @param \Closure|string $listener
* @param \Closure|string|array $events
* @param \Closure|string|array|null $listener
* @return void
*/
public function listen($events, $listener)
public function listen($events, $listener = null)
{
$this->dispatcher->listen($events, $listener);
}