Writes `$message` to a new Growl notification.

Parameters

  • string $type The `Logger`-based priority of the message. This value is mapped to a Growl-specific priority value if possible.
  • string $message Message to be shown.
  • array $options Any options that are passed to the `notify()` method. See the `$options` parameter of `notify()`.

Returns

closure Function returning boolean `true` on successful write, `false` otherwise.

Source

						public function write($type, $message, array $options = array()) {
		$_self =& $this;
		$_priorities = $this->_priorities;

		return function($self, $params) use (&$_self, $_priorities) {
			$priority = 0;
			$options = $params['options'];

			if (isset($options['priority']) && isset($_priorities[$options['priority']])) {
				$priority = $_priorities[$options['priority']];
			}
			return $_self->notify($params['message'], compact('priority') + $options);
		};
	}