|
@@ 112-118 (lines=7) @@
|
| 109 |
|
/** |
| 110 |
|
* Detects all _register_database.php files and invokes them |
| 111 |
|
*/ |
| 112 |
|
public static function autodiscover() { |
| 113 |
|
foreach(glob(dirname(__FILE__) . '/../../../*', GLOB_ONLYDIR) as $directory) { |
| 114 |
|
if(file_exists($directory . '/_register_database.php')) { |
| 115 |
|
include_once($directory . '/_register_database.php'); |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
/** |
| 121 |
|
* Detects all _configure_database.php files and invokes them |
|
@@ 124-130 (lines=7) @@
|
| 121 |
|
* Detects all _configure_database.php files and invokes them |
| 122 |
|
* Called by ConfigureFromEnv.php |
| 123 |
|
*/ |
| 124 |
|
public static function autoconfigure() { |
| 125 |
|
foreach(glob(dirname(__FILE__) . '/../../../*', GLOB_ONLYDIR) as $directory) { |
| 126 |
|
if(file_exists($directory . '/_configure_database.php')) { |
| 127 |
|
include_once($directory . '/_configure_database.php'); |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* Return all registered adapters |