/** * @param AvatarUser $user * @param LifecycleEventArgs $args * */ public function postRemove(AvatarUser $user, LifecycleEventArgs $args) { $this->s_upload->removePath($user->getPath()); }
/** * @param LifecycleEventArgs $args * */ public function postRemove(LifecycleEventArgs $args) { $this->isOk($entity = $args->getEntity()) ? $this->s_upload->removePath($entity->getPath()) : null; }