Пример #1
0
 protected function forceLogin(User $user)
 {
     $token = new UsernamePasswordToken($user, null, "main", $user->getRoles());
     $this->security->setToken($token);
 }