mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-05 14:23:36 +00:00
Reverting change in ConnectionManager, sourceList() will only return the instantiated datasources
Fixing remaining tests failing due to contamination of loaded plugin is app
This commit is contained in:
parent
aca592ad93
commit
e669a81e0a
3 changed files with 6 additions and 2 deletions
lib/Cake/Model
|
@ -106,6 +106,8 @@ class ConnectionManager {
|
|||
|
||||
/**
|
||||
* Gets the list of available DataSource connections
|
||||
* This will only return the datasources instantiated by this manager
|
||||
* It differs from enumConnectionObjects, since the latter will return all configured connections
|
||||
*
|
||||
* @return array List of available connections
|
||||
*/
|
||||
|
@ -113,7 +115,7 @@ class ConnectionManager {
|
|||
if (empty(self::$_init)) {
|
||||
self::init();
|
||||
}
|
||||
return array_keys((array)self::$config);
|
||||
return array_keys(self::$_dataSources);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue