示例#1
0
 public function notify(Notification $notification)
 {
     exec('notify-send "' . $notification->getMessage() . '"');
 }
示例#2
0
文件: OSX.php 项目: php-system/notify
 public function notify(Notification $notification)
 {
     exec('osascript -e \'display notification "' . $notification->getMessage() . '"\'');
 }