diff --git a/lib/Alchemy/Phrasea/Controller/Prod/EditController.php b/lib/Alchemy/Phrasea/Controller/Prod/EditController.php index f0213de578..d0730f9b03 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/EditController.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/EditController.php @@ -15,7 +15,7 @@ use Alchemy\Phrasea\Application\Helper\SubDefinitionSubstituerAware; use Alchemy\Phrasea\Controller\Controller; use Alchemy\Phrasea\Controller\RecordsRequest; use Alchemy\Phrasea\Core\Event\Record\RecordEvents; -use Alchemy\Phrasea\Core\Event\Record\StoryCoverChanged; +use Alchemy\Phrasea\Core\Event\Record\StoryCoverChangedEvent; use Alchemy\Phrasea\Core\Event\RecordEdit; use Alchemy\Phrasea\Core\PhraseaEvents; use Alchemy\Phrasea\Model\Entities\Preset; @@ -311,7 +311,7 @@ class EditController extends Controller $subdefChanged = true; } if($subdefChanged) { - $this->dispatch(RecordEvents::STORY_COVER_CHANGED, new StoryCoverChanged($reg_record, $newsubdef_reg)); + $this->dispatch(RecordEvents::STORY_COVER_CHANGED, new StoryCoverChangedEvent($reg_record, $newsubdef_reg)); $this->dispatch(PhraseaEvents::RECORD_EDIT, new RecordEdit($reg_record)); } } catch (\Exception $e) { diff --git a/lib/Alchemy/Phrasea/Core/Event/Record/StoryCoverChanged.php b/lib/Alchemy/Phrasea/Core/Event/Record/StoryCoverChangedEvent.php similarity index 90% rename from lib/Alchemy/Phrasea/Core/Event/Record/StoryCoverChanged.php rename to lib/Alchemy/Phrasea/Core/Event/Record/StoryCoverChangedEvent.php index 41a991392f..2f2c60bceb 100644 --- a/lib/Alchemy/Phrasea/Core/Event/Record/StoryCoverChanged.php +++ b/lib/Alchemy/Phrasea/Core/Event/Record/StoryCoverChangedEvent.php @@ -12,8 +12,9 @@ namespace Alchemy\Phrasea\Core\Event\Record; use record_adapter; +use Symfony\Component\EventDispatcher\Event; -class StoryCoverChanged extends RecordEvent +class StoryCoverChangedEvent extends Event { /** @var record_adapter $record */ private $story_record;