for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Magestead\Service;
use Joli\JoliNotif\Notification as Notify;
use Joli\JoliNotif\NotifierFactory;
/**
* Class Notification
* @package Magestead\Service
*/
class Notification
{
* Send desktop notification
*
* @param $message
public static function send($message)
$notifier = NotifierFactory::create();
$basePath = dirname( __FILE__ ) . '/../../../';
$notification =
(new Notify())
->setTitle('Magestead')
->setBody($message)
->setIcon($basePath .'assets/magentologo.png')
;
$notifier->send($notification);
}