예제 #1
0
 /**
  * @param String $server The STOMP server.
  * @param Int $port The port number of the STOMP server.
  * @param String $clientid The client id.
  * @param String $destination The desitnation queue.
  * @param string|array $types types
  * @param boolean $bubble Bubble or not.
  */
 public function __construct($server = 'localhost', $port = 61613, $clientid = 'mystomp', $destination = 'undefined', $types = Notifier::TYPE_ALL, $bubble = true)
 {
     $this->stompserver = $server;
     $this->stompport = $port;
     $this->stompclientid = $clientid;
     $this->stompdestination = $destination;
     parent::__construct($types, $bubble);
 }
예제 #2
0
 /**
  * @param String $token The API token from pushover.net
  * @param array|bool|string $types types
  * @param boolean $bubble Bubble or not.
  */
 public function __construct($token, $types = Notifier::TYPE_ALL, $bubble = true)
 {
     $this->token = $token;
     parent::__construct($types, $bubble);
 }
예제 #3
0
 /**
  * Get the formatter. This will use the default as a fallback.
  *
  * @return SwiftMailerFormatter
  */
 public function getFormatter()
 {
     return parent::getFormatter();
 }
예제 #4
0
 public function __construct($types = Notifier::TYPE_ALL, $appName = 'Notifier', $bubble = true)
 {
     $this->appName = $appName;
     parent::__construct($types, $bubble);
 }