1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Merge pull request #449 from eberkund/master

Move ~/.valet to ~/.config/valet
This commit is contained in:
Matt Stauffer
2018-08-30 08:33:28 -04:00
committed by GitHub
10 changed files with 26 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ class Configuration
/**
* Create a new Valet configuration class instance.
*
* @param Filesystem $filesystem
* @param Filesystem $files
*/
function __construct(Filesystem $files)
{
@@ -42,6 +42,13 @@ function install()
function createConfigurationDirectory()
{
$this->files->ensureDirExists(VALET_HOME_PATH, user());
$oldPath = posix_getpwuid(fileowner(__FILE__))['dir'].'/.valet';
if ($this->files->isDir($oldPath)) {
$this->prependPath(VALET_HOME_PATH.'/Sites');
rename($oldPath, VALET_HOME_PATH);
}
}
/**