Advertisement
Guest User

Untitled

a guest
Oct 27th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Config\Database;
  4. use Config\Config;
  5. use Config\ConfigLoader;
  6.  
  7. final class MySQL extends Config {
  8.     public static $dbName;
  9.     public static $host;
  10.     public static $dbType;
  11.     public static $port;
  12.     public static $dbUser;
  13.     public static $dbPass;
  14. }
  15.  
  16.  
  17. MySQL::$dbName = Config::get('MySQL')['DBName'];
  18. MySQL::$host = Config::get('MySQL')['Host'];
  19. MySQL::$dbType = Config::get('MySQL')['DBType'];
  20. MySQL::$port = Config::get('MySQL')['Port'];
  21. MySQL::$dbUser = Config::get('MySQL')['DBUser'];
  22. MySQL::$dbPass = Config::get('MySQL')['DBPass'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement