Ejemplo n.º 1
0
 public function onShowUser(ShowUserEvent $event)
 {
     $user = $this->current_user;
     $event->setUser($user);
 }
Ejemplo n.º 2
0
 public function onShowUser(ShowUserEvent $event)
 {
     $user = $this->getUser();
     $event->setUser($user);
 }
 public function onShowUser(ShowUserEvent $event)
 {
     $user = new UserModel();
     $user->setAvatar('')->setIsOnline(true)->setMemberSince(new \DateTime())->setUsername('Demo User');
     $event->setUser($user);
 }