PHP 클래스 Valet\Configuration

파일 보기 프로젝트 열기: laravel/valet

공개 프로퍼티들

프로퍼티 타입 설명
$files

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

addPath() 공개 메소드

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

createConfigurationDirectory() 공개 메소드

Create the Valet configuration directory.
public createConfigurationDirectory ( ) : void
리턴 void

createDriversDirectory() 공개 메소드

Create the Valet drivers directory.
public createDriversDirectory ( ) : void
리턴 void

createExtensionsDirectory() 공개 메소드

Create the directory for the Valet extensions.
public createExtensionsDirectory ( ) : void
리턴 void

createLogDirectory() 공개 메소드

Create the directory for Caddy log.
public createLogDirectory ( ) : void
리턴 void

createSitesDirectory() 공개 메소드

Create the Valet sites directory.
public createSitesDirectory ( ) : void
리턴 void

install() 공개 메소드

Install the Valet configuration file.
public install ( ) : void
리턴 void

path() 공개 메소드

Get the configuration file path.
public path ( ) : string
리턴 string

prependPath() 공개 메소드

Prepend the given path to the configuration.
public prependPath ( string $path ) : void
$path string
리턴 void

prune() 공개 메소드

Prune all non-existent paths from the configuration.
public prune ( ) : void
리턴 void

read() 공개 메소드

Read the configuration file as JSON.
public read ( ) : array
리턴 array

removePath() 공개 메소드

Remove the given path from the configuration.
public removePath ( string $path ) : void
$path string
리턴 void

updateKey() 공개 메소드

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

write() 공개 메소드

Write the given configuration to disk.
public write ( array $config ) : void
$config array
리턴 void

writeBaseConfiguration() 공개 메소드

Write the base, initial configuration for Valet.

프로퍼티 상세

$files 공개적으로 프로퍼티

public $files