Update LifecycleSubscriber.php

Change plugin events.
Merge pull request #1 from ahilles107/patch-1

Update LifecycleSubscriber.php