Update LifecycleSubscriber.php

Change plugin events.