메소드 |
설명 |
|
__construct ( Filesystem $files ) |
Create a new Valet configuration class instance. |
|
addPath ( string $path, boolean $prepend = false ) : void |
Add the given path to the configuration. |
|
createConfigurationDirectory ( ) : void |
Create the Valet configuration directory. |
|
createDriversDirectory ( ) : void |
Create the Valet drivers directory. |
|
createExtensionsDirectory ( ) : void |
Create the directory for the Valet extensions. |
|
createLogDirectory ( ) : void |
Create the directory for Caddy log. |
|
createSitesDirectory ( ) : void |
Create the Valet sites directory. |
|
install ( ) : void |
Install the Valet configuration file. |
|
path ( ) : string |
Get the configuration file path. |
|
prependPath ( string $path ) : void |
Prepend the given path to the configuration. |
|
prune ( ) : void |
Prune all non-existent paths from the configuration. |
|
read ( ) : array |
Read the configuration file as JSON. |
|
removePath ( string $path ) : void |
Remove the given path from the configuration. |
|
updateKey ( string $key, mixed $value ) : array |
Update a specific key in the configuration file. |
|
write ( array $config ) : void |
Write the given configuration to disk. |
|
writeBaseConfiguration ( ) |
Write the base, initial configuration for Valet. |
|