use Joli\JoliNotif\Notification; if ($notifier) { $notification = (new Notification()) ->setBody('The notification body') ->setTitle('The notification title') ->setIcon(__DIR__.'/Resources/icons/success.png'); ; $notifier->send($notification); }