| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 3 | public function setIdentity(EntityInterface $identity) |
|
| 40 | { |
||
| 41 | // save identity to Auth |
||
| 42 | 3 | $this->identity = $identity; |
|
| 43 | // save identity to session |
||
| 44 | 3 | Session::set('auth:identity', $identity); |
|
| 45 | // save user agent to session |
||
| 46 | 3 | Session::set('auth:agent', Request::getServer('HTTP_USER_AGENT')); |
|
| 47 | 3 | } |
|
| 48 | |||
| 79 |