/** * getter singleton instance * @param string $type type to load * @param array $paths paths where to search * @param array $prefixes explicit file prefixes * @return LBoxLoaderConfig * @throws LBoxExceptionLoader */ public static function getInstance($paths = array(), $pathsIgnore = array(), $prefixes = array()) { $className = __CLASS__; try { if (!isset(self::$instance)) { self::$instance = new $className($paths, $pathsIgnore, $prefixes); } return self::$instance; } catch (Exception $e) { throw $e; } }