refactor config events
This commit is contained in:
@@ -29,16 +29,16 @@ use Thelia\Model\Config as ConfigModel;
|
||||
|
||||
use Thelia\Core\Event\TheliaEvents;
|
||||
|
||||
use Thelia\Core\Event\ConfigUpdateEvent;
|
||||
use Thelia\Core\Event\ConfigCreateEvent;
|
||||
use Thelia\Core\Event\ConfigDeleteEvent;
|
||||
use Thelia\Core\Event\Config\ConfigUpdateEvent;
|
||||
use Thelia\Core\Event\Config\ConfigCreateEvent;
|
||||
use Thelia\Core\Event\Config\ConfigDeleteEvent;
|
||||
|
||||
class Config extends BaseAction implements EventSubscriberInterface
|
||||
{
|
||||
/**
|
||||
* Create a new configuration entry
|
||||
*
|
||||
* @param ConfigCreateEvent $event
|
||||
* @param \Thelia\Core\Event\Config\ConfigCreateEvent $event
|
||||
*/
|
||||
public function create(ConfigCreateEvent $event)
|
||||
{
|
||||
@@ -54,7 +54,7 @@ class Config extends BaseAction implements EventSubscriberInterface
|
||||
/**
|
||||
* Change a configuration entry value
|
||||
*
|
||||
* @param ConfigUpdateEvent $event
|
||||
* @param \Thelia\Core\Event\Config\ConfigUpdateEvent $event
|
||||
*/
|
||||
public function setValue(ConfigUpdateEvent $event)
|
||||
{
|
||||
@@ -74,7 +74,7 @@ class Config extends BaseAction implements EventSubscriberInterface
|
||||
/**
|
||||
* Change a configuration entry
|
||||
*
|
||||
* @param ConfigUpdateEvent $event
|
||||
* @param \Thelia\Core\Event\Config\ConfigUpdateEvent $event
|
||||
*/
|
||||
public function modify(ConfigUpdateEvent $event)
|
||||
{
|
||||
@@ -94,7 +94,7 @@ class Config extends BaseAction implements EventSubscriberInterface
|
||||
/**
|
||||
* Delete a configuration entry
|
||||
*
|
||||
* @param ConfigDeleteEvent $event
|
||||
* @param \Thelia\Core\Event\Config\ConfigDeleteEvent $event
|
||||
*/
|
||||
public function delete(ConfigDeleteEvent $event)
|
||||
{
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
|
||||
namespace Thelia\Controller\Admin;
|
||||
|
||||
use Thelia\Core\Event\ConfigDeleteEvent;
|
||||
use Thelia\Core\Event\Config\ConfigDeleteEvent;
|
||||
use Thelia\Core\Event\TheliaEvents;
|
||||
use Thelia\Core\Event\ConfigUpdateEvent;
|
||||
use Thelia\Core\Event\ConfigCreateEvent;
|
||||
use Thelia\Core\Event\Config\ConfigUpdateEvent;
|
||||
use Thelia\Core\Event\Config\ConfigCreateEvent;
|
||||
use Thelia\Model\ConfigQuery;
|
||||
use Thelia\Form\ConfigModificationForm;
|
||||
use Thelia\Form\ConfigCreationForm;
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Core\Event;
|
||||
namespace Thelia\Core\Event\Config;
|
||||
|
||||
use Thelia\Core\Event\Config\ConfigEvent;
|
||||
|
||||
class ConfigCreateEvent extends ConfigEvent
|
||||
{
|
||||
@@ -21,7 +21,9 @@
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Core\Event;
|
||||
namespace Thelia\Core\Event\Config;
|
||||
|
||||
use Thelia\Core\Event\Config\ConfigEvent;
|
||||
|
||||
class ConfigDeleteEvent extends ConfigEvent
|
||||
{
|
||||
@@ -21,7 +21,8 @@
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Core\Event;
|
||||
namespace Thelia\Core\Event\Config;
|
||||
use Thelia\Core\Event\ActionEvent;
|
||||
use Thelia\Model\Config;
|
||||
|
||||
class ConfigEvent extends ActionEvent
|
||||
@@ -21,7 +21,9 @@
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Core\Event;
|
||||
namespace Thelia\Core\Event\Config;
|
||||
|
||||
use Thelia\Core\Event\Config\ConfigCreateEvent;
|
||||
|
||||
class ConfigUpdateEvent extends ConfigCreateEvent
|
||||
{
|
||||
@@ -26,7 +26,7 @@ namespace Thelia\Model;
|
||||
use Thelia\Model\Base\Config as BaseConfig;
|
||||
use Propel\Runtime\Connection\ConnectionInterface;
|
||||
use Thelia\Core\Event\TheliaEvents;
|
||||
use Thelia\Core\Event\ConfigEvent;
|
||||
use Thelia\Core\Event\Config\ConfigEvent;
|
||||
|
||||
class Config extends BaseConfig {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user