File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 77
88namespace app \core ;
99
10+ use app \core \db \Database ;
11+
1012/**
1113 * Class Application
1214 *
@@ -26,7 +28,7 @@ class Application
2628 public Database $ db ;
2729 public Session $ session ;
2830 public View $ view ;
29- public ?DbModel $ user ;
31+ public ?UserModel $ user ;
3032
3133 public function __construct ($ rootDir , $ config )
3234 {
@@ -53,7 +55,7 @@ public static function isGuest()
5355 return !self ::$ app ->user ;
5456 }
5557
56- public function login (DbModel $ user )
58+ public function login (UserModel $ user )
5759 {
5860 $ this ->user = $ user ;
5961 $ primaryKey = $ user ->primaryKey ();
Original file line number Diff line number Diff line change 77
88namespace app \core ;
99
10+ use app \core \db \DbModel ;
1011
1112/**
1213 * Class UserModel
Original file line number Diff line number Diff line change 55 * Time: 8:09 AM
66 */
77
8- namespace app \core ;
8+ namespace app \core \ db ;
99
1010
1111/**
Original file line number Diff line number Diff line change 55 * Time: 9:19 AM
66 */
77
8- namespace app \core ;
8+ namespace app \core \ db ;
99
10+ use app \core \Application ;
11+ use app \core \Model ;
1012
1113/**
1214 * Class DbModel
You can’t perform that action at this time.
0 commit comments