イベント サブスクライバーがありますが、preRemove 関数が呼び出されることはありませんが、他のイベントが呼び出されます。私が間違ったことはありますか?
class DocumentSubscriber implements EventSubscriber
{
private $serviceContainer;
public function getSubscribedEvents()
{
return array(
'postUpdate',
'preRemove',
);
}
public function setServiceContainer($serviceContainer) {
$this->serviceContainer = $serviceContainer;
}
public function preRemove(LifecycleEventArgs $args)
{
}
public function postUpdate(LifecycleEventArgs $args)
{
}
}