protected function preinit($req) { if ($req === null) { $req = new \stdClass(); $req->attrs = new \stdClass(); } $this->attrs = $req->attrs; }