PHP Class Valet\Caddy

显示文件 Open project: laravel/valet

Public Properties

Property Type Description
$cli
$configuration
$daemonPath
$files
$site

Public Methods

Method Description
__construct ( CommandLine $cli, Filesystem $files, Configuration $configuration, Site $site ) Create a new Brew instance.
install ( ) : void Install the system launch daemon for the Caddy server.
installCaddyDaemon ( ) : void Install the Caddy daemon on a system level daemon.
installCaddyDirectory ( ) : void Install the Caddy configuration directory to the ~/.valet directory.
installCaddyFile ( ) : void Install the Caddyfile to the ~/.valet directory.
restart ( ) : void Restart the launch daemon.
rewriteSecureCaddyFiles ( ) : void Generate fresh Caddyfiles for existing secure sites.
stop ( ) : void Stop the launch daemon.
uninstall ( ) : void Remove the launch daemon.

Method Details

__construct() public method

Create a new Brew instance.
public __construct ( CommandLine $cli, Filesystem $files, Configuration $configuration, Site $site )
$cli CommandLine
$files Filesystem
$configuration Configuration
$site Site

install() public method

Install the system launch daemon for the Caddy server.
public install ( ) : void
return void

installCaddyDaemon() public method

Install the Caddy daemon on a system level daemon.
public installCaddyDaemon ( ) : void
return void

installCaddyDirectory() public method

This directory contains all site-specific Caddy definitions.
public installCaddyDirectory ( ) : void
return void

installCaddyFile() public method

This file serves as the main server configuration for Valet.
public installCaddyFile ( ) : void
return void

restart() public method

Restart the launch daemon.
public restart ( ) : void
return void

rewriteSecureCaddyFiles() public method

This simplifies upgrading when the Caddyfile structure changes.
public rewriteSecureCaddyFiles ( ) : void
return void

stop() public method

Stop the launch daemon.
public stop ( ) : void
return void

uninstall() public method

Remove the launch daemon.
public uninstall ( ) : void
return void

Property Details

$cli public_oe property

public $cli

$configuration public_oe property

public $configuration

$daemonPath public_oe property

public $daemonPath

$files public_oe property

public $files

$site public_oe property

public $site