Commit 48a312b9 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout d’une propriété message à l’événement des TBLs.

parent 79f9cc7b
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,4 +20,6 @@ class Event
    public ?int $progress = null;

    public ?int $total = null;

    public ?string $message = null;
}
 No newline at end of file
+3 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ class TableauBord



    public function onAction(string $action, ?int $progress = null, ?int $total = null)
    public function onAction(string $action, ?int $progress = null, ?int $total = null, ?string $message = null)
    {
        if (null !== $this->onAction) {
            $event              = new Event();
@@ -94,6 +94,8 @@ class TableauBord
            $event->action      = $action;
            $event->progress    = $progress;
            $event->total       = $total;
            $event->message     = $message;


            call_user_func($this->onAction, $event);
        }