static function _load_default_gateways() { $path = STTraveler::dir('gateways'); $results = scandir($path); foreach ($results as $result) { if ($result === '.' or $result === '..') { continue; } if (is_dir($path . '/' . $result)) { $file = $path . '/' . $result . '/' . $result . '.php'; if (file_exists($file)) { include_once $file; } } } }