/** * */ public function identity($prop = null) { if (!$this->authService->hasIdentity()) { return; } $identity = $this->authService->getIdentity(); if (null !== $prop) { return $identity->{$prop}; } return $identity; }
/** * */ public function identity($prop = null) { if (!$this->authService->hasIdentity()) { return; } $identity = $this->authService->getIdentity(); if (null !== $prop) { return $identity->{$prop}; } return $identity; }