44
55namespace builder \Database \Capsule ;
66
7- use Exception ;
87use builder \Database \Constants ;
98
109
@@ -46,19 +45,6 @@ class Manager extends Constants{
4645 'bootstrap ' => 'bootstrap ' ,
4746 'simple ' => 'simple ' ,
4847 ];
49-
50- /**
51- * @var array
52- */
53- static private $ disallow_method = [
54- 'errorTemp ' ,
55- 'executeAction ' ,
56- 'execute ' ,
57- 'insert ' ,
58- 'delete ' ,
59- 'update ' ,
60- 'select ' ,
61- ];
6248
6349 /**
6450 * @var array
@@ -81,11 +67,6 @@ class Manager extends Constants{
8167 'utf8 ' ,
8268 'latin1 ' ,
8369 ];
84-
85- /**
86- * @var string
87- */
88- static public $ default_bg = 'dark ' ;
8970
9071 /**
9172 * Initilize and Set the Database Configuration on constructor
@@ -106,7 +87,6 @@ static public function initConfiguration(?array $options = [])
10687 {
10788 $ defaultOption = array_merge ([
10889 'APP_DEBUG ' => true ,
109- 'APP_DEBUG_BG ' => self ::$ default_bg ,
11090 'DRIVER_NAME ' => 'mysql ' ,
11191 'DB_HOST ' => 'localhost ' ,
11292 'DB_DATABASE ' => '' ,
@@ -127,11 +107,6 @@ static public function initConfiguration(?array $options = [])
127107 define ('APP_DEBUG ' , self ::setEnvBool ($ _ENV ['APP_DEBUG ' ] ?? $ defaultOption ['APP_DEBUG ' ]));
128108 }
129109
130- // APP_DEBUG_BG
131- if ( ! defined ('APP_DEBUG_BG ' ) ) {
132- define ('APP_DEBUG_BG ' , $ _ENV ['APP_DEBUG_BG ' ] ?? $ defaultOption ['APP_DEBUG_BG ' ]);
133- }
134-
135110 // DRIVER_NAME
136111 if ( ! defined ('DRIVER_NAME ' ) ) {
137112 define ('DRIVER_NAME ' , $ _ENV ['DRIVER_NAME ' ] ?? $ defaultOption ['DRIVER_NAME ' ]);
@@ -184,7 +159,6 @@ static public function getConfig($key = 'DB_HOST')
184159 {
185160 $ data = [
186161 'APP_DEBUG ' => defined ('APP_DEBUG ' ) ? APP_DEBUG : true ,
187- 'APP_DEBUG_BG ' => defined ('APP_DEBUG_BG ' ) ? APP_DEBUG_BG : self ::$ default_bg ,
188162 'DRIVER_NAME ' => defined ('DRIVER_NAME ' ) ? DRIVER_NAME : 'mysql ' ,
189163 'DB_HOST ' => defined ('DB_HOST ' ) ? DB_HOST : 'localhost ' ,
190164 'DB_DATABASE ' => defined ('DB_DATABASE ' ) ? DB_DATABASE : null ,
0 commit comments