Move RECORD_* events in a new RecordEvents class

This commit is contained in:
Mathieu Darse
2015-01-27 16:17:48 +01:00
parent 85c410278a
commit a1d6fc03b6
19 changed files with 72 additions and 51 deletions

View File

@@ -14,8 +14,8 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Alchemy\Phrasea\Command\Command;
use Alchemy\Phrasea\Core\Event\RecordEvent\RecordEvents;
use Alchemy\Phrasea\Core\Event\RecordEvent\RecordMetadataChangedEvent;
use Alchemy\Phrasea\Core\PhraseaEvents;
class module_console_fieldsMerge extends Command
{
@@ -198,7 +198,7 @@ class module_console_fieldsMerge extends Command
]], true);
}
$this->getService('dispatcher')->dispatch(PhraseaEvents::RECORD_METADATA_CHANGED, new RecordMetadataChangedEvent($record));
$this->getService('dispatcher')->dispatch(RecordEvents::METADATA_CHANGED, new RecordMetadataChangedEvent($record));
unset($record);
}