PHP Class Valet\DnsMasq

Mostra file Open project: laravel/valet

Public Properties

Property Type Description
$brew
$cli
$configPath
$exampleConfigPath
$files
$resolverPath

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

appendCustomConfigImport() public method

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

copyExampleConfig() public method

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

createCustomConfigFile() public method

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

createDomainResolver() public method

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

customConfigIsBeingImported() public method

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

customConfigPath() public method

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

install() public method

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

updateDomain() public method

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

Property Details

$brew public_oe property

public $brew

$cli public_oe property

public $cli

$configPath public_oe property

public $configPath

$exampleConfigPath public_oe property

public $exampleConfigPath

$files public_oe property

public $files

$resolverPath public_oe property

public $resolverPath