src/Sismo/Contrib/GrowlNotifier.php
public function notify(Commit $commit)
    {
        try {
            $this->growl->register();

            $name = $commit->isSuccessful()
                ? self::NOTIFY_SUCCESS : self::NOTIFY_FAILURE;
            $notifications = $this->growl->getApplication()->getGrowlNotifications();

            $this->growl->publish(
                $name,
                $commit->getProject()->getName(),
                $this->format($this->format, $commit),
                $notifications[$name]
            );
        } catch (\Net_Growl_Exception $e) {
            return false;
        }

        return true;
    }
public function notify(Commit $commit)
    {
        try {
            $this->growl->register();

            $name = $commit->isSuccessful()
                ? self::NOTIFY_SUCCESS : self::NOTIFY_FAILURE;
            $notifications = $this->growl->getApplication()->getGrowlNotifications();

            $this->growl->publish(
                $name,
                $commit->getProject()->getName(),
                $this->format($this->format, $commit),
                $notifications[$name]
            );
        } catch (\Net_Growl_Exception $e) {
            return false;
        }

        return true;
    }
public function notify ( Commit $ commit ) { try { $ this -> growl -> register ( ) ; $ name = $ commit -> isSuccessful ( ) ? self :: NOTIFY_SUCCESS : self :: NOTIFY_FAILURE ; $ notifications = $ this -> growl -> getApplication ( ) -> getGrowlNotifications ( ) ; $ this -> growl -> publish ( $ name , $ commit -> getProject ( ) -> getName ( ) , $ this -> format ( $ this -> format , $ commit ) , $ notifications [ $ name ] ) ; } catch ( \ Net_Growl_Exception $ e ) { return false ; } return true ; }
Notify a project commit

@param Sismo\Commit $commit The latest project commit

@return bool TRUE on a succesfull notification, FALSE on failure
Notify a project commit