Пример #1
0
 /**
  * @param UserId $userId
  * @return $this
  */
 public function saveUserId(UserId $userId)
 {
     $this->session->set(self::USER_KEY, $userId->getId());
     return $this;
 }
Пример #2
0
 public function testGetId()
 {
     $this->assertEquals('test', $this->userId->getId());
 }
Пример #3
0
 /** @inheritdoc */
 public function getUserFromId(UserId $userId)
 {
     return $this->userRepository->findOneBy(['id' => $userId->getId()])->setGrantsFactory($this->accessGrantsFactory);
 }