PHP Class Valet\Configuration

Afficher le fichier Open project: laravel/valet

Méthodes publiques

Свойство Type Description
$files

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

Create a new Valet configuration class instance.
public __construct ( Filesystem $files )
$files Filesystem

addPath() public méthode

Add the given path to the configuration.
public addPath ( string $path, boolean $prepend = false ) : void
$path string
$prepend boolean
Résultat void

createConfigurationDirectory() public méthode

Create the Valet configuration directory.
public createConfigurationDirectory ( ) : void
Résultat void

createDriversDirectory() public méthode

Create the Valet drivers directory.
public createDriversDirectory ( ) : void
Résultat void

createExtensionsDirectory() public méthode

Create the directory for the Valet extensions.
public createExtensionsDirectory ( ) : void
Résultat void

createLogDirectory() public méthode

Create the directory for Caddy log.
public createLogDirectory ( ) : void
Résultat void

createSitesDirectory() public méthode

Create the Valet sites directory.
public createSitesDirectory ( ) : void
Résultat void

install() public méthode

Install the Valet configuration file.
public install ( ) : void
Résultat void

path() public méthode

Get the configuration file path.
public path ( ) : string
Résultat string

prependPath() public méthode

Prepend the given path to the configuration.
public prependPath ( string $path ) : void
$path string
Résultat void

prune() public méthode

Prune all non-existent paths from the configuration.
public prune ( ) : void
Résultat void

read() public méthode

Read the configuration file as JSON.
public read ( ) : array
Résultat array

removePath() public méthode

Remove the given path from the configuration.
public removePath ( string $path ) : void
$path string
Résultat void

updateKey() public méthode

Update a specific key in the configuration file.
public updateKey ( string $key, mixed $value ) : array
$key string
$value mixed
Résultat array

write() public méthode

Write the given configuration to disk.
public write ( array $config ) : void
$config array
Résultat void

writeBaseConfiguration() public méthode

Write the base, initial configuration for Valet.

Property Details

$files public_oe property

public $files