Open darcydriscoll opened 2 years ago
public/api/db.php public/api/user.php
Example of visibility: public/api/db.php::DB::connect
Lifetime: I only ever have one DB and one User class instantiated at one time. Why are these not static? Why are they classes?
Visibility: Not sure.
Nope
🐏 Now: Motivation
⚜️ Where's the issue?
public/api/db.php public/api/user.php
Example of visibility: public/api/db.php::DB::connect
⚜️ What's the issue?
Lifetime: I only ever have one DB and one User class instantiated at one time. Why are these not static? Why are they classes?
Visibility: Not sure.
⚜️ Any ideas on how to solve it?
Nope
🦄 Later: Solving it
💠 The problem
💠 The method
💠 Notes