Don't need postRemove.

This commit is contained in:
nurikabe 2013-12-01 21:48:41 +00:00
parent f258c9ddc0
commit 5ec652063d
3 changed files with 1 additions and 10 deletions

View file

@ -412,7 +412,7 @@ class FOSElasticaExtension extends Extension
$eventMapping = array(
'insert' => array('postPersist'),
'update' => array('postUpdate'),
'delete' => array('postRemove', 'preRemove')
'delete' => array('preRemove'),
'flush' => array('postFlush')
);

View file

@ -209,10 +209,6 @@ abstract class AbstractListener implements EventSubscriber
}
}
public function postRemove(EventArgs $eventArgs)
{
}
/**
* Iterate through scheduled actions *after* flushing to ensure that the ElasticSearch index will only be affected
* only if the query is successful

View file

@ -21,9 +21,4 @@ class Listener extends AbstractListener
{
parent::preRemove($eventArgs);
}
public function postRemove(EventArgs $eventArgs)
{
parent::postRemove($eventArgs);
}
}