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