| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 74 | 30 | protected function init () { |
|
| 75 | 30 | if (!$this->cache) { |
|
| 76 | 30 | $this->cache = Cache::prefix('sessions'); |
|
| 77 | 30 | $this->users_cache = Cache::prefix('users'); |
|
| 78 | } |
||
| 79 | 30 | $this->session_id = null; |
|
| 80 | 30 | $this->user_id = User::GUEST_ID; |
|
| 81 | 30 | Event::instance()->fire('System/Session/init/before'); |
|
| 82 | 30 | $this->init_session(); |
|
| 83 | 30 | Event::instance()->fire('System/Session/init/after'); |
|
| 84 | 30 | } |
|
| 85 | } |
||
| 86 |