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

load extensions

This commit is contained in:
Taylor Otwell
2016-05-11 20:32:53 -05:00
parent f48b6c7563
commit 14588a40d8
8 changed files with 60 additions and 31 deletions

View File

@@ -26,6 +26,7 @@ function install()
{
$this->createConfigurationDirectory();
$this->createDriversDirectory();
$this->createExtensionsDirectory();
$this->writeBaseConfiguration();
$this->files->chown($this->path(), user());
@@ -38,9 +39,7 @@ function install()
*/
function createConfigurationDirectory()
{
if (! $this->files->isDir(VALET_HOME_PATH)) {
$this->files->mkdirAsUser(VALET_HOME_PATH);
}
$this->files->ensureDirExists(VALET_HOME_PATH, user());
}
/**
@@ -62,6 +61,16 @@ function createDriversDirectory()
);
}
/**
* Create the directory for the Valet extensions.
*
* @return void
*/
function createExtensionsDirectory()
{
$this->files->ensureDirExists(VALET_HOME_PATH.'/Extensions', user());
}
/**
* Write the base, initial configuration for Valet.
*/