mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
load extensions
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user