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