File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1212 * @link http://dbrasil.tk/devbr
1313 */
1414
15- namespace Config \Devbr ;
15+ namespace Config \Database ;
1616
1717/**
1818 * Config\Database Class
2323 * @license <https://opensource.org/licenses/MIT> MIT
2424 * @link http://dbrasil.tk/devbr
2525 */
26- class Database
26+ class Main
2727{
2828 static $ config = [
2929 'mysql ' =>[
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ function __construct($config = null)
4646 {
4747 if (is_array ($ config )) {
4848 $ this ->config = $ config ;
49- } elseif (method_exists ('Config\Database\Database ' , 'get ' )) {
50- $ this ->config = \Config \Database \Database ::get ($ config );
49+ } elseif (method_exists ('Config\Database\Main ' , 'get ' )) {
50+ $ this ->config = \Config \Database \Main ::get ($ config );
5151 } else {
5252 trigger_error ('DataBase configurations not found! ' );
5353 }
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ public function __construct($config = null)
6363 $ this ->_dbConfig [$ i ] = $ d ;
6464 }
6565 }
66- } elseif (method_exists ('Config\Devbr\ Database\Database ' , 'getUserConfig ' )) {
67- $ this ->_dbConfig = \Config \Devbr \ Database \Database ::getUserConfig ();
66+ } elseif (method_exists ('Config\Database\Main ' , 'getUserConfig ' )) {
67+ $ this ->_dbConfig = \Config \Database \Main ::getUserConfig ();
6868 }
6969
7070 $ this ->_db = new Database ;
You can’t perform that action at this time.
0 commit comments