mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Rollback media substituted event renaming
This commit is contained in:
@@ -22,5 +22,5 @@ final class RecordEvents
|
||||
const STATUS_CHANGED = 'record.status_changed';
|
||||
// Sub-definitions
|
||||
const SUB_DEFINITION_CREATED = 'record.sub_definition_created';
|
||||
const SUB_DEFINITION_SUBSTITUTED = 'record.sub_definition_substituted';
|
||||
const MEDIA_SUBSTITUTED = 'record.media_substituted';
|
||||
}
|
||||
|
@@ -11,6 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Core\Event\Record;
|
||||
|
||||
class RecordSubDefinitionSubstitutedEvent extends RecordEvent
|
||||
class RecordMediaSubstitutedEvent extends RecordEvent
|
||||
{
|
||||
}
|
@@ -97,6 +97,6 @@ class SubdefSubstituer
|
||||
$record->rebuild_subdefs();
|
||||
}
|
||||
|
||||
$this->dispatcher->dispatch(RecordEvents::SUB_DEFINITION_SUBSTITUTED, new RecordMediaSubstitutedEvent($record));
|
||||
$this->dispatcher->dispatch(RecordEvents::MEDIA_SUBSTITUTED, new RecordMediaSubstitutedEvent($record));
|
||||
}
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ class IndexerSubscriber implements EventSubscriberInterface
|
||||
RecordEvents::ORIGINAL_NAME_CHANGED => 'onRecordChange',
|
||||
RecordEvents::STATUS_CHANGED => 'onRecordChange',
|
||||
RecordEvents::SUB_DEFINITION_CREATED => 'onRecordChange',
|
||||
RecordEvents::SUB_DEFINITION_SUBSTITUTED => 'onRecordChange',
|
||||
RecordEvents::MEDIA_SUBSTITUTED => 'onRecordChange',
|
||||
KernelEvents::TERMINATE => 'onKernelTerminate',
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user