diff --git a/core/lib/Thelia/Action/Address.php b/core/lib/Thelia/Action/Address.php
index e28a98370..32ec24c05 100644
--- a/core/lib/Thelia/Action/Address.php
+++ b/core/lib/Thelia/Action/Address.php
@@ -101,7 +101,8 @@ class Address extends BaseAction implements EventSubscriberInterface
public static function getSubscribedEvents()
{
return array(
- TheliaEvents::ADDRESS_CREATE => array("create", 128)
+ TheliaEvents::ADDRESS_CREATE => array("create", 128),
+ TheliaEvents::ADDRESS_UPDATE => array("update", 128)
);
}
}
\ No newline at end of file
diff --git a/core/lib/Thelia/Action/Category.php b/core/lib/Thelia/Action/Category.php
index 59604bab9..28ca2fc9e 100755
--- a/core/lib/Thelia/Action/Category.php
+++ b/core/lib/Thelia/Action/Category.php
@@ -53,7 +53,7 @@ class Category extends BaseAction implements EventSubscriberInterface
);
}
- public function modify(CategoryChangeEvent $event)
+ public function update(CategoryChangeEvent $event)
{
}
@@ -242,7 +242,7 @@ class Category extends BaseAction implements EventSubscriberInterface
{
return array(
TheliaEvents::CATEGORY_CREATE => array("create", 128),
- TheliaEvents::CATEGORY_MODIFY => array("modify", 128),
+ TheliaEvents::CATEGORY_UPDATE => array("update", 128),
TheliaEvents::CATEGORY_DELETE => array("delete", 128),
TheliaEvents::CATEGORY_TOGGLE_VISIBILITY => array("toggleVisibility", 128),
diff --git a/core/lib/Thelia/Action/Config.php b/core/lib/Thelia/Action/Config.php
index fa683f1d4..c7b016c63 100644
--- a/core/lib/Thelia/Action/Config.php
+++ b/core/lib/Thelia/Action/Config.php
@@ -148,7 +148,7 @@ class Config extends BaseAction implements EventSubscriberInterface
return array(
TheliaEvents::CONFIG_CREATE => array("create", 128),
TheliaEvents::CONFIG_SETVALUE => array("setValue", 128),
- TheliaEvents::CONFIG_MODIFY => array("modify", 128),
+ TheliaEvents::CONFIG_UPDATE => array("modify", 128),
TheliaEvents::CONFIG_DELETE => array("delete", 128),
);
}
diff --git a/core/lib/Thelia/Action/Currency.php b/core/lib/Thelia/Action/Currency.php
index 4e3bb45d4..6b4ec626f 100644
--- a/core/lib/Thelia/Action/Currency.php
+++ b/core/lib/Thelia/Action/Currency.php
@@ -113,7 +113,7 @@ class Currency extends BaseAction implements EventSubscriberInterface
{
return array(
TheliaEvents::CURRENCY_CREATE => array("create", 128),
- TheliaEvents::CURRENCY_MODIFY => array("modify", 128),
+ TheliaEvents::CURRENCY_UPDATE => array("modify", 128),
TheliaEvents::CURRENCY_DELETE => array("delete", 128),
);
}
diff --git a/core/lib/Thelia/Action/Message.php b/core/lib/Thelia/Action/Message.php
index dd50a5652..f2335bd82 100644
--- a/core/lib/Thelia/Action/Message.php
+++ b/core/lib/Thelia/Action/Message.php
@@ -118,7 +118,7 @@ class Message extends BaseAction implements EventSubscriberInterface
{
return array(
TheliaEvents::MESSAGE_CREATE => array("create", 128),
- TheliaEvents::MESSAGE_MODIFY => array("modify", 128),
+ TheliaEvents::MESSAGE_UPDATE => array("modify", 128),
TheliaEvents::MESSAGE_DELETE => array("delete", 128),
);
}
diff --git a/core/lib/Thelia/Controller/Admin/ConfigController.php b/core/lib/Thelia/Controller/Admin/ConfigController.php
index 8f761ed7e..171bfcb95 100644
--- a/core/lib/Thelia/Controller/Admin/ConfigController.php
+++ b/core/lib/Thelia/Controller/Admin/ConfigController.php
@@ -210,7 +210,7 @@ class ConfigController extends BaseAdminController
->setPostscriptum($data['postscriptum'])
;
- $this->dispatch(TheliaEvents::CONFIG_MODIFY, $changeEvent);
+ $this->dispatch(TheliaEvents::CONFIG_UPDATE, $changeEvent);
// Log config modification
$changedObject = $changeEvent->getConfig();
diff --git a/core/lib/Thelia/Controller/Admin/CurrencyController.php b/core/lib/Thelia/Controller/Admin/CurrencyController.php
index 69cc60117..e920d48f2 100644
--- a/core/lib/Thelia/Controller/Admin/CurrencyController.php
+++ b/core/lib/Thelia/Controller/Admin/CurrencyController.php
@@ -218,7 +218,7 @@ class CurrencyController extends BaseAdminController
->setRate($data['rate'])
;
- $this->dispatch(TheliaEvents::CURRENCY_MODIFY, $changeEvent);
+ $this->dispatch(TheliaEvents::CURRENCY_UPDATE, $changeEvent);
// Log currency modification
$changedObject = $changeEvent->getCurrency();
diff --git a/core/lib/Thelia/Controller/Admin/MessageController.php b/core/lib/Thelia/Controller/Admin/MessageController.php
index 5a53fd28a..18eff44fa 100644
--- a/core/lib/Thelia/Controller/Admin/MessageController.php
+++ b/core/lib/Thelia/Controller/Admin/MessageController.php
@@ -204,7 +204,7 @@ class MessageController extends BaseAdminController
->setTextMessage($data['text_message'])
;
- $this->dispatch(TheliaEvents::MESSAGE_MODIFY, $changeEvent);
+ $this->dispatch(TheliaEvents::MESSAGE_UPDATE, $changeEvent);
// Log message modification
$changedObject = $changeEvent->getMessage();
diff --git a/core/lib/Thelia/Controller/Front/CartController.php b/core/lib/Thelia/Controller/Front/CartController.php
index 8f2cdd036..c3d928a15 100755
--- a/core/lib/Thelia/Controller/Front/CartController.php
+++ b/core/lib/Thelia/Controller/Front/CartController.php
@@ -74,7 +74,7 @@ class CartController extends BaseFrontController
$cartEvent->setQuantity($this->getRequest()->get("quantity"));
try {
- $this->getDispatcher()->dispatch(TheliaEvents::CART_CHANGEITEM, $cartEvent);
+ $this->getDispatcher()->dispatch(TheliaEvents::CART_UPDATEITEM, $cartEvent);
$this->redirectSuccess();
} catch(PropelException $e) {
diff --git a/core/lib/Thelia/Core/Event/TheliaEvents.php b/core/lib/Thelia/Core/Event/TheliaEvents.php
index b77636eb4..deb7b9619 100755
--- a/core/lib/Thelia/Core/Event/TheliaEvents.php
+++ b/core/lib/Thelia/Core/Event/TheliaEvents.php
@@ -113,7 +113,7 @@ final class TheliaEvents
* Create, change or delete a category
*/
const CATEGORY_CREATE = "action.createCategory";
- const CATEGORY_MODIFY = "action.modifyCategory";
+ const CATEGORY_UPDATE = "action.updateCategory";
const CATEGORY_DELETE = "action.deleteCategory";
/**
@@ -143,12 +143,12 @@ final class TheliaEvents
/**
* Sent just before a successful change of a category in the database.
*/
- const BEFORE_CHANGECATEGORY = "action.before_changecategory";
+ const BEFORE_UPDATECATEGORY = "action.before_updateCategory";
/**
* Sent just after a successful change of a category in the database.
*/
- const AFTER_CHANGECATEGORY = "action.after_changecategory";
+ const AFTER_UPDATECATEGORY = "action.after_updateCategory";
/**
* sent when a new existing cat id duplicated. This append when current customer is different from current cart
@@ -163,7 +163,7 @@ final class TheliaEvents
/**
* sent when a cart item is modify
*/
- const AFTER_CARTCHANGEITEM = "cart.modifyItem";
+ const AFTER_CARTUPDATEITEM = "cart.updateItem";
/**
* sent for addArticle action
@@ -173,7 +173,7 @@ final class TheliaEvents
/**
* sent on modify article action
*/
- const CART_CHANGEITEM = "action.changeArticle";
+ const CART_UPDATEITEM = "action.updateArticle";
const CART_DELETEITEM = "action.deleteArticle";
@@ -191,14 +191,14 @@ final class TheliaEvents
const CONFIG_CREATE = "action.createConfig";
const CONFIG_SETVALUE = "action.setConfigValue";
- const CONFIG_MODIFY = "action.changeConfig";
+ const CONFIG_UPDATE = "action.updateConfig";
const CONFIG_DELETE = "action.deleteConfig";
const BEFORE_CREATECONFIG = "action.before_createConfig";
const AFTER_CREATECONFIG = "action.after_createConfig";
- const BEFORE_CHANGECONFIG = "action.before_changeConfig";
- const AFTER_CHANGECONFIG = "action.after_changeConfig";
+ const BEFORE_UPDATECONFIG = "action.before_updateConfig";
+ const AFTER_UPDATECONFIG = "action.after_updateConfig";
const BEFORE_DELETECONFIG = "action.before_deleteConfig";
const AFTER_DELETECONFIG = "action.after_deleteConfig";
@@ -206,14 +206,14 @@ final class TheliaEvents
// -- Messages management ---------------------------------------------
const MESSAGE_CREATE = "action.createMessage";
- const MESSAGE_MODIFY = "action.changeMessage";
+ const MESSAGE_UPDATE = "action.updateMessage";
const MESSAGE_DELETE = "action.deleteMessage";
const BEFORE_CREATEMESSAGE = "action.before_createMessage";
const AFTER_CREATEMESSAGE = "action.after_createMessage";
- const BEFORE_CHANGEMESSAGE = "action.before_changeMessage";
- const AFTER_CHANGEMESSAGE = "action.after_changeMessage";
+ const BEFORE_UPDATEMESSAGE = "action.before_updateMessage";
+ const AFTER_UPDATEMESSAGE = "action.after_updateMessage";
const BEFORE_DELETEMESSAGE = "action.before_deleteMessage";
const AFTER_DELETEMESSAGE = "action.after_deleteMessage";
@@ -221,14 +221,14 @@ final class TheliaEvents
// -- Currencies management ---------------------------------------------
const CURRENCY_CREATE = "action.createCurrency";
- const CURRENCY_MODIFY = "action.changeCurrency";
+ const CURRENCY_UPDATE = "action.updateCurrency";
const CURRENCY_DELETE = "action.deleteCurrency";
const BEFORE_CREATECURRENCY = "action.before_createCurrency";
const AFTER_CREATECURRENCY = "action.after_createCurrency";
- const BEFORE_CHANGECURRENCY = "action.before_changeCurrency";
- const AFTER_CHANGECURRENCY = "action.after_changeCurrency";
+ const BEFORE_UPDATECURRENCY = "action.before_updateCurrency";
+ const AFTER_UPDATECURRENCY = "action.after_updateCurrency";
const BEFORE_DELETECURRENCY = "action.before_deleteCurrency";
const AFTER_DELETECURRENCY = "action.after_deleteCurrency";
diff --git a/core/lib/Thelia/Model/CartItem.php b/core/lib/Thelia/Model/CartItem.php
index fbfbee32c..5ef6048a5 100755
--- a/core/lib/Thelia/Model/CartItem.php
+++ b/core/lib/Thelia/Model/CartItem.php
@@ -32,7 +32,7 @@ class CartItem extends BaseCartItem
if ($this->dispatcher) {
$cartEvent = new CartEvent($this->getCart());
- $this->dispatcher->dispatch(TheliaEvents::AFTER_CARTCHANGEITEM, $cartEvent);
+ $this->dispatcher->dispatch(TheliaEvents::AFTER_CARTUPDATEITEM, $cartEvent);
}
}
diff --git a/core/lib/Thelia/Model/Category.php b/core/lib/Thelia/Model/Category.php
index ae999ccc8..5564112c9 100755
--- a/core/lib/Thelia/Model/Category.php
+++ b/core/lib/Thelia/Model/Category.php
@@ -95,14 +95,14 @@ class Category extends BaseCategory
public function preUpdate(ConnectionInterface $con = null)
{
- $this->dispatchEvent(TheliaEvents::BEFORE_CHANGECATEGORY, new CategoryEvent($this));
+ $this->dispatchEvent(TheliaEvents::BEFORE_UPDATECATEGORY, new CategoryEvent($this));
return true;
}
public function postUpdate(ConnectionInterface $con = null)
{
- $this->dispatchEvent(TheliaEvents::AFTER_CHANGECATEGORY, new CategoryEvent($this));
+ $this->dispatchEvent(TheliaEvents::AFTER_UPDATECATEGORY, new CategoryEvent($this));
}
public function preDelete(ConnectionInterface $con = null)
diff --git a/core/lib/Thelia/Model/Config.php b/core/lib/Thelia/Model/Config.php
index 70880151c..a3289af27 100755
--- a/core/lib/Thelia/Model/Config.php
+++ b/core/lib/Thelia/Model/Config.php
@@ -55,7 +55,7 @@ class Config extends BaseConfig {
*/
public function preUpdate(ConnectionInterface $con = null)
{
- $this->dispatchEvent(TheliaEvents::BEFORE_CHANGECONFIG, new ConfigEvent($this));
+ $this->dispatchEvent(TheliaEvents::BEFORE_UPDATECONFIG, new ConfigEvent($this));
return true;
}
@@ -65,7 +65,7 @@ class Config extends BaseConfig {
*/
public function postUpdate(ConnectionInterface $con = null)
{
- $this->dispatchEvent(TheliaEvents::AFTER_CHANGECONFIG, new ConfigEvent($this));
+ $this->dispatchEvent(TheliaEvents::AFTER_UPDATECONFIG, new ConfigEvent($this));
}
/**
diff --git a/core/lib/Thelia/Model/Currency.php b/core/lib/Thelia/Model/Currency.php
index f2f1175c6..fc1c86b67 100755
--- a/core/lib/Thelia/Model/Currency.php
+++ b/core/lib/Thelia/Model/Currency.php
@@ -34,7 +34,7 @@ class Currency extends BaseCurrency {
*/
public function preUpdate(ConnectionInterface $con = null)
{
- $this->dispatchEvent(TheliaEvents::BEFORE_CHANGECURRENCY, new CurrencyEvent($this));
+ $this->dispatchEvent(TheliaEvents::BEFORE_UPDATECURRENCY, new CurrencyEvent($this));
return true;
}
@@ -44,7 +44,7 @@ class Currency extends BaseCurrency {
*/
public function postUpdate(ConnectionInterface $con = null)
{
- $this->dispatchEvent(TheliaEvents::AFTER_CHANGECURRENCY, new CurrencyEvent($this));
+ $this->dispatchEvent(TheliaEvents::AFTER_UPDATECURRENCY, new CurrencyEvent($this));
}
/**
diff --git a/core/lib/Thelia/Model/Message.php b/core/lib/Thelia/Model/Message.php
index 97fb45469..aa6481ab8 100755
--- a/core/lib/Thelia/Model/Message.php
+++ b/core/lib/Thelia/Model/Message.php
@@ -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));
}
/**
diff --git a/documentation/api/classes/Thelia.Core.Event.TheliaEvents.html b/documentation/api/classes/Thelia.Core.Event.TheliaEvents.html
index 3491e4264..fe9f532a1 100755
--- a/documentation/api/classes/Thelia.Core.Event.TheliaEvents.html
+++ b/documentation/api/classes/Thelia.Core.Event.TheliaEvents.html
@@ -1637,12 +1637,12 @@
AFTER_CREATECATEGORY
BEFORE_DELETECATEGORY
AFTER_DELETECATEGORY
- AFTER_CHANGECATEGORY
+ AFTER_UPDATECATEGORY
CART_DUPLICATE
AFTER_CARTADDITEM
- AFTER_CARTCHANGEITEM
+ AFTER_CARTUPDATEITEM
CART_ADDITEM
- CART_CHANGEITEM
+ CART_UPDATEITEM
CART_DELETEITEM
@@ -2023,8 +2023,8 @@
- AFTER_CHANGECATEGORY
- AFTER_CHANGECATEGORY
+ AFTER_UPDATECATEGORY
+ AFTER_UPDATECATEGORY
Sent just after a successful change of a category in the database.
@@ -2089,8 +2089,8 @@
- AFTER_CARTCHANGEITEM
- AFTER_CARTCHANGEITEM
+ AFTER_CARTUPDATEITEM
+ AFTER_CARTUPDATEITEM
sent when a cart item is modify
@@ -2133,8 +2133,8 @@
- CART_CHANGEITEM
- CART_CHANGEITEM
+ CART_UPDATEITEM
+ CART_UPDATEITEM
sent on modify article action
diff --git a/documentation/api/files/Action/Category.php.txt b/documentation/api/files/Action/Category.php.txt
index a47d51c75..b62357b08 100755
--- a/documentation/api/files/Action/Category.php.txt
+++ b/documentation/api/files/Action/Category.php.txt
@@ -227,7 +227,7 @@ class Category extends BaseAction implements EventSubscriberInterface
$categoryEvent = new CategoryEvent($category);
- $event->getDispatcher()->dispatch(TheliaEvents::AFTER_CHANGECATEGORY, $categoryEvent);
+ $event->getDispatcher()->dispatch(TheliaEvents::AFTER_UPDATECATEGORY, $categoryEvent);
}
}
diff --git a/documentation/api/files/Controller/Front/CartController.php.txt b/documentation/api/files/Controller/Front/CartController.php.txt
index c800070e2..de27c7be4 100755
--- a/documentation/api/files/Controller/Front/CartController.php.txt
+++ b/documentation/api/files/Controller/Front/CartController.php.txt
@@ -74,7 +74,7 @@ class CartController extends BaseFrontController
$cartEvent->setQuantity($this->getRequest()->get("quantity"));
try {
- $this->getDispatcher()->dispatch(TheliaEvents::CART_CHANGEITEM, $cartEvent);
+ $this->getDispatcher()->dispatch(TheliaEvents::CART_UPDATEITEM, $cartEvent);
$this->redirectSuccess();
} catch(PropelException $e) {
diff --git a/documentation/api/files/Core/Event/TheliaEvents.php.txt b/documentation/api/files/Core/Event/TheliaEvents.php.txt
index 7ddc0b786..e06abc3c7 100755
--- a/documentation/api/files/Core/Event/TheliaEvents.php.txt
+++ b/documentation/api/files/Core/Event/TheliaEvents.php.txt
@@ -106,7 +106,7 @@ final class TheliaEvents
/**
* Sent just after a successful change of a category in the database.
*/
- const AFTER_CHANGECATEGORY = "action.after_changecategory";
+ const AFTER_UPDATECATEGORY = "action.after_changecategory";
/**
* sent when a new existing cat id duplicated. This append when current customer is different from current cart
@@ -121,7 +121,7 @@ final class TheliaEvents
/**
* sent when a cart item is modify
*/
- const AFTER_CARTCHANGEITEM = "cart.modifyItem";
+ const AFTER_CARTUPDATEITEM = "cart.modifyItem";
/**
* sent for addArticle action
@@ -131,7 +131,7 @@ final class TheliaEvents
/**
* sent on modify article action
*/
- const CART_CHANGEITEM = "action.changeArticle";
+ const CART_UPDATEITEM = "action.changeArticle";
const CART_DELETEITEM = "action.deleteArticle";
}
diff --git a/documentation/api/files/Model/CartItem.php.txt b/documentation/api/files/Model/CartItem.php.txt
index a9671b57b..d956fd25d 100755
--- a/documentation/api/files/Model/CartItem.php.txt
+++ b/documentation/api/files/Model/CartItem.php.txt
@@ -32,7 +32,7 @@ class CartItem extends BaseCartItem
if ($this->dispatcher) {
$cartEvent = new CartEvent($this->getCart());
- $this->dispatcher->dispatch(TheliaEvents::AFTER_CARTCHANGEITEM, $cartEvent);
+ $this->dispatcher->dispatch(TheliaEvents::AFTER_CARTUPDATEITEM, $cartEvent);
}
}