PHP 클래스 Valet\DnsMasq

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

공개 프로퍼티들

프로퍼티 타입 설명
$brew
$cli
$configPath
$exampleConfigPath
$files
$resolverPath

공개 메소드들

메소드 설명
__construct ( Brew $brew, CommandLine $cli, Filesystem $files ) : void Create a new DnsMasq instance.
appendCustomConfigImport ( string $customConfigPath ) : void Append import command for our custom configuration to DnsMasq file.
copyExampleConfig ( ) : void Copy the Homebrew installed example DnsMasq configuration file.
createCustomConfigFile ( string $domain ) : void Append the custom DnsMasq configuration file to the main configuration file.
createDomainResolver ( string $domain ) : void Create the resolver file to point the "dev" domain to 127.0.0.1.
customConfigIsBeingImported ( string $customConfigPath ) : boolean Determine if Valet's custom DnsMasq configuration is being imported.
customConfigPath ( ) : string Get the custom configuration path.
install ( $domain = 'dev' ) : void Install and configure DnsMasq.
updateDomain ( string $oldDomain, string $newDomain ) : void Update the domain used by DnsMasq.

메소드 상세

__construct() 공개 메소드

Create a new DnsMasq instance.
public __construct ( Brew $brew, CommandLine $cli, Filesystem $files ) : void
$brew Brew
$cli CommandLine
$files Filesystem
리턴 void

appendCustomConfigImport() 공개 메소드

Append import command for our custom configuration to DnsMasq file.
public appendCustomConfigImport ( string $customConfigPath ) : void
$customConfigPath string
리턴 void

copyExampleConfig() 공개 메소드

Copy the Homebrew installed example DnsMasq configuration file.
public copyExampleConfig ( ) : void
리턴 void

createCustomConfigFile() 공개 메소드

Append the custom DnsMasq configuration file to the main configuration file.
public createCustomConfigFile ( string $domain ) : void
$domain string
리턴 void

createDomainResolver() 공개 메소드

Create the resolver file to point the "dev" domain to 127.0.0.1.
public createDomainResolver ( string $domain ) : void
$domain string
리턴 void

customConfigIsBeingImported() 공개 메소드

Determine if Valet's custom DnsMasq configuration is being imported.
public customConfigIsBeingImported ( string $customConfigPath ) : boolean
$customConfigPath string
리턴 boolean

customConfigPath() 공개 메소드

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

install() 공개 메소드

Install and configure DnsMasq.
public install ( $domain = 'dev' ) : void
리턴 void

updateDomain() 공개 메소드

Update the domain used by DnsMasq.
public updateDomain ( string $oldDomain, string $newDomain ) : void
$oldDomain string
$newDomain string
리턴 void

프로퍼티 상세

$brew 공개적으로 프로퍼티

public $brew

$cli 공개적으로 프로퍼티

public $cli

$configPath 공개적으로 프로퍼티

public $configPath

$exampleConfigPath 공개적으로 프로퍼티

public $exampleConfigPath

$files 공개적으로 프로퍼티

public $files

$resolverPath 공개적으로 프로퍼티

public $resolverPath