Centralize record event dispatches inside record adapter (but not structure ones)

This commit is contained in:
Mathieu Darse
2015-02-03 11:19:23 +01:00
parent e287ba1a42
commit c6b509a32c
21 changed files with 36 additions and 114 deletions

View File

@@ -14,8 +14,6 @@ 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\Record\RecordEvents;
use Alchemy\Phrasea\Core\Event\Record\RecordMetadataChangedEvent;
class module_console_fieldsMerge extends Command
{
@@ -198,8 +196,6 @@ class module_console_fieldsMerge extends Command
]], true);
}
$this->getService('dispatcher')->dispatch(RecordEvents::METADATA_CHANGED, new RecordMetadataChangedEvent($record));
unset($record);
}