loadIntegrations(); } /** * Load the integration classes * * @return void */ protected function loadIntegrations() { foreach (glob(__DIR__ . '/Integrations/*.php') as $file) { $class = 'Extendify\\Agent\\Integrations\\' . basename($file, '.php'); if (!class_exists($class)) { continue; } new $class(); } } }