示例#1
0
 public function __construct(User $user)
 {
     $this->user = $user;
     Database::connect();
 }
示例#2
0
文件: User.php 项目: ithoq/am-radius
 public function __construct($uname)
 {
     DB::connect();
     $this->uname = $uname;
 }