refactor name for updating actions

This commit is contained in:
Manuel Raynaud
2013-09-04 10:48:59 +02:00
parent b9a7030d90
commit d23190303c
20 changed files with 49 additions and 48 deletions

View File

@@ -34,7 +34,7 @@ class Message extends BaseMessage {
*/
public function preUpdate(ConnectionInterface $con = null)
{
$this->dispatchEvent(TheliaEvents::BEFORE_CHANGEMESSAGE, new MessageEvent($this));
$this->dispatchEvent(TheliaEvents::BEFORE_UPDATEMESSAGE, new MessageEvent($this));
return true;
}
@@ -44,7 +44,7 @@ class Message extends BaseMessage {
*/
public function postUpdate(ConnectionInterface $con = null)
{
$this->dispatchEvent(TheliaEvents::AFTER_CHANGEMESSAGE, new MessageEvent($this));
$this->dispatchEvent(TheliaEvents::AFTER_UPDATEMESSAGE, new MessageEvent($this));
}
/**