public function dispatch(DomainEvents $events) : void {
        $events->each(function (DomainEvent $event) {
            $this->listeners->each(function (Listener $listener) use ($event) {
                    $listener->handle($event);
            });
        });
    }
public function dispatch(DomainEvents $events) : void {
        $events->each(function (DomainEvent $event) {
            $this->listeners->each(function (Listener $listener) use ($event) {
                    $listener->handle($event);
            });
        });
    }
public function dispatch ( DomainEvents $ events ) : void { $ events -> each ( function ( DomainEvent $ event ) { $ this -> listeners -> each ( function ( Listener $ listener ) use ( $ event ) { $ listener -> handle ( $ event ) ; } ) ; } ) ; }
dispatch domain events to listeners

@param DomainEvents $events
dispatch domain events to listeners