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