protected function notify($message, array $params = [], $domain = null, $status = Notification::STATE_DONE)
    {
        $this->notificationPool->addNotification(
            new TranslatableNotificationMessage([
                'message' => $message,
                'translationParams' => $params,
                'domain' => $domain,
            ]),
            $status
        );
    }
protected function notify($message, array $params = [], $domain = null, $status = Notification::STATE_DONE)
    {
        $this->notificationPool->addNotification(
            new TranslatableNotificationMessage([
                'message' => $message,
                'translationParams' => $params,
                'domain' => $domain,
            ]),
            $status
        );
    }
protected function notify ( $ message , array $ params = [ ] , $ domain = null , $ status = Notification :: STATE_DONE ) { $ this -> notificationPool -> addNotification ( new TranslatableNotificationMessage ( [ 'message' => $ message , 'translationParams' => $ params , 'domain' => $ domain , ] ) , $ status ) ; }
Registers a translatable notification.

@param string $message
@param array $params Translation parameters to be injected into $message.
@param string $domain Translation domain.
@param string $status On of Notification::STATE_DONE, Notification::STATE_ERROR, Notification::STATE_STARTED
Registers a translatable notification .