File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ public function indexAction(Crypt $crypt)
4545 $ this ->util ->display ();
4646
4747 $ crypt ->display ();
48+
49+ $ this ->userService ->display ();
4850 // $userData1 = ServerManager::getApp()->userService->findUser();
4951 // $userData2 = ServerManager::getApp()->userService->findUser();
5052 $ userData1 =$ this ->userService ->findUser ();
Original file line number Diff line number Diff line change 1111
1212use Framework \SwServer \ServerManager ;
1313use Framework \SwServer \WebSocket \WST ;
14+ use App \Service \Crypt ;
1415
1516class User
1617{
1718 public $ arr = [];
1819
20+ public $ crypt ;
21+
22+ public function __construct (Crypt $ crypt )
23+ {
24+ $ this ->crypt =$ crypt ;
25+ }
26+
1927 public function findUser ()
2028 {
2129 $ userData = ServerManager::getApp ()->db ->table ('user ' )->find ();
2230 return $ userData ;
2331 }
2432
2533 public function display (){
34+ $ this ->crypt ->display ();
2635 echo __CLASS__ ."== " .__METHOD__ ;
2736 }
2837
You can’t perform that action at this time.
0 commit comments