From dcb3baaf4c434c658c95f53de06cd520f2b6ba3d Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 2 Jul 2013 17:26:41 +0200 Subject: [PATCH] change text name event by using TheliaEvents constant --- core/lib/Thelia/Model/Customer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/Thelia/Model/Customer.php b/core/lib/Thelia/Model/Customer.php index d0f7b8515..1aef516b7 100755 --- a/core/lib/Thelia/Model/Customer.php +++ b/core/lib/Thelia/Model/Customer.php @@ -4,6 +4,7 @@ namespace Thelia\Model; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Thelia\Core\Event\CustomRefEvent; +use Thelia\Core\Event\TheliaEvents; use Thelia\Model\om\BaseCustomer; @@ -53,7 +54,7 @@ class Customer extends BaseCustomer { $customerRef = new CustomRefEvent($this); if (!is_null($this->dispatcher)) { - $this->dispatcher->dispatch("customer.creation.customref", $customerRef); + $this->dispatcher->dispatch(TheliaEvents::CREATECUSTOMER_CUSTOMREF, $customerRef); } $this->setRef($customerRef->hasRef()? $customerRef->getRef() : $this->generateRef());