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