move folders action class to Folder directory

This commit is contained in:
Manuel Raynaud
2013-09-25 17:53:38 +02:00
parent a8a8ecb38c
commit 3a7a76afe0
8 changed files with 24 additions and 19 deletions

View File

@@ -23,10 +23,10 @@
namespace Thelia\Action; namespace Thelia\Action;
use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Thelia\Core\Event\FolderCreateEvent; use Thelia\Core\Event\Folder\FolderCreateEvent;
use Thelia\Core\Event\FolderDeleteEvent; use Thelia\Core\Event\Folder\FolderDeleteEvent;
use Thelia\Core\Event\FolderToggleVisibilityEvent; use Thelia\Core\Event\Folder\FolderToggleVisibilityEvent;
use Thelia\Core\Event\FolderUpdateEvent; use Thelia\Core\Event\Folder\FolderUpdateEvent;
use Thelia\Core\Event\TheliaEvents; use Thelia\Core\Event\TheliaEvents;
use Thelia\Core\Event\UpdatePositionEvent; use Thelia\Core\Event\UpdatePositionEvent;
use Thelia\Model\FolderQuery; use Thelia\Model\FolderQuery;

View File

@@ -22,10 +22,10 @@
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Controller\Admin; namespace Thelia\Controller\Admin;
use Thelia\Core\Event\FolderCreateEvent; use Thelia\Core\Event\Folder\FolderCreateEvent;
use Thelia\Core\Event\FolderDeleteEvent; use Thelia\Core\Event\Folder\FolderDeleteEvent;
use Thelia\Core\Event\FolderToggleVisibilityEvent; use Thelia\Core\Event\Folder\FolderToggleVisibilityEvent;
use Thelia\Core\Event\FolderUpdateEvent; use Thelia\Core\Event\Folder\FolderUpdateEvent;
use Thelia\Core\Event\TheliaEvents; use Thelia\Core\Event\TheliaEvents;
use Thelia\Core\Event\UpdatePositionEvent; use Thelia\Core\Event\UpdatePositionEvent;
use Thelia\Form\FolderCreationForm; use Thelia\Form\FolderCreationForm;
@@ -150,7 +150,7 @@ class FolderController extends AbstractCrudController
} }
/** /**
* @return FolderToggleVisibilityEvent|void * @return \Thelia\Core\Event\Folder\FolderToggleVisibilityEvent|void
*/ */
protected function createToggleVisibilityEvent() protected function createToggleVisibilityEvent()
{ {
@@ -174,7 +174,7 @@ class FolderController extends AbstractCrudController
/** /**
* Return true if the event contains the object, e.g. the action has updated the object in the event. * Return true if the event contains the object, e.g. the action has updated the object in the event.
* *
* @param \Thelia\Core\Event\FolderEvent $event * @param \Thelia\Core\Event\Folder\FolderEvent $event
*/ */
protected function eventContainsObject($event) protected function eventContainsObject($event)
{ {
@@ -184,7 +184,7 @@ class FolderController extends AbstractCrudController
/** /**
* Get the created object from an event. * Get the created object from an event.
* *
* @param $event \Thelia\Core\Event\FolderEvent $event * @param $event \Thelia\Core\Event\Folder\FolderEvent $event
* *
* @return null|\Thelia\Model\Folder * @return null|\Thelia\Model\Folder
*/ */
@@ -257,7 +257,7 @@ class FolderController extends AbstractCrudController
} }
/** /**
* @param \Thelia\Core\Event\FolderUpdateEvent $updateEvent * @param \Thelia\Core\Event\Folder\FolderUpdateEvent $updateEvent
* @return Response|void * @return Response|void
*/ */
protected function performAdditionalUpdateAction($updateEvent) protected function performAdditionalUpdateAction($updateEvent)
@@ -275,7 +275,7 @@ class FolderController extends AbstractCrudController
/** /**
* Put in this method post object delete processing if required. * Put in this method post object delete processing if required.
* *
* @param \Thelia\Core\Event\FolderDeleteEvent $deleteEvent the delete event * @param \Thelia\Core\Event\Folder\FolderDeleteEvent $deleteEvent the delete event
* @return Response a response, or null to continue normal processing * @return Response a response, or null to continue normal processing
*/ */
protected function performAdditionalDeleteAction($deleteEvent) protected function performAdditionalDeleteAction($deleteEvent)

View File

@@ -21,7 +21,8 @@
/* */ /* */
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Core\Event; namespace Thelia\Core\Event\Folder;
use Thelia\Core\Event\Folder\FolderEvent;
/** /**

View File

@@ -21,7 +21,8 @@
/* */ /* */
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Core\Event; namespace Thelia\Core\Event\Folder;
use Thelia\Core\Event\Folder\FolderEvent;
/** /**

View File

@@ -21,7 +21,8 @@
/* */ /* */
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Core\Event; namespace Thelia\Core\Event\Folder;
use Thelia\Core\Event\ActionEvent;
use Thelia\Model\Folder; use Thelia\Model\Folder;

View File

@@ -21,7 +21,8 @@
/* */ /* */
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Core\Event; namespace Thelia\Core\Event\Folder;
use Thelia\Core\Event\Folder\FolderEvent;
/** /**

View File

@@ -21,7 +21,8 @@
/* */ /* */
/*************************************************************************************/ /*************************************************************************************/
namespace Thelia\Core\Event; namespace Thelia\Core\Event\Folder;
use Thelia\Core\Event\Folder\FolderCreateEvent;
/** /**

View File

@@ -2,7 +2,7 @@
namespace Thelia\Model; namespace Thelia\Model;
use Thelia\Core\Event\FolderEvent; use Thelia\Core\Event\Folder\FolderEvent;
use Thelia\Core\Event\TheliaEvents; use Thelia\Core\Event\TheliaEvents;
use Thelia\Model\Base\Folder as BaseFolder; use Thelia\Model\Base\Folder as BaseFolder;
use Thelia\Tools\URL; use Thelia\Tools\URL;