| 1 | <?php |
||
| 10 | class ConfigPath |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The config dir |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected static $homeConfigDir; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Gets the config dir of the current user |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public static function getHomeConfigDir() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Checks whether the os is windows |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | public static function isWindows() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get default config json file |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public static function getDefaultConfigFile() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get configuration file of the user |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public static function getUserConfigFile() |
||
| 66 | } |
||
| 67 |