config['driver']) && empty($db->config['datasource'])) || !method_exists($db, 'getLog') ) { continue; } if (isset($db->config['datasource'])) { $driver = $db->config['datasource']; } $explain = false; $isExplainable = (preg_match('/(Mysql|Postgres)$/', $driver)); if ($isExplainable) { $explain = true; } $connections[$configName] = $explain; } return array('connections' => $connections, 'threshold' => $this->slowRate); } }