PHP 클래스 Valet\Site

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

공개 프로퍼티들

프로퍼티 타입 설명
$cli
$config
$files

공개 메소드들

메소드 설명
__construct ( Configuration $config, CommandLine $cli, Filesystem $files ) Create a new Site instance.
buildSecureCaddyfile ( string $url ) : string Build the TLS secured Caddyfile for the given URL.
certificatesPath ( ) : string Get the path to the Valet TLS certificates.
createCertificate ( string $url ) : void Create and trust a certificate for the given URL.
createPrivateKey ( string $keyPath ) : void Create the private key for the TLS certificate.
createSigningRequest ( $url, string $keyPath, $csrPath ) : void Create the signing request for the TLS certificate.
host ( string $path ) : string | null Get the real hostname for the given path, checking links.
link ( string $target, string $link ) : string Link the current working directory with the given name.
pruneLinks ( ) : void Remove all broken symbolic links.
resecureForNewDomain ( string $oldDomain, string $domain ) : void Resecure all currently secured sites with a fresh domain.
secure ( string $url ) : void Secure the given host with TLS.
secured ( ) : array Get all of the URLs that are currently secured.
sitesPath ( ) : string Get the path to the linked Valet sites.
trustCertificate ( string $crtPath ) : void Trust the given certificate file in the Mac Keychain.
unlink ( string $name ) : void Unlink the given symbolic link.
unsecure ( string $url ) : void Unsecure the given URL so that it will use HTTP again.

메소드 상세

__construct() 공개 메소드

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

buildSecureCaddyfile() 공개 메소드

Build the TLS secured Caddyfile for the given URL.
public buildSecureCaddyfile ( string $url ) : string
$url string
리턴 string

certificatesPath() 공개 메소드

Get the path to the Valet TLS certificates.
public certificatesPath ( ) : string
리턴 string

createCertificate() 공개 메소드

Create and trust a certificate for the given URL.
public createCertificate ( string $url ) : void
$url string
리턴 void

createPrivateKey() 공개 메소드

Create the private key for the TLS certificate.
public createPrivateKey ( string $keyPath ) : void
$keyPath string
리턴 void

createSigningRequest() 공개 메소드

Create the signing request for the TLS certificate.
public createSigningRequest ( $url, string $keyPath, $csrPath ) : void
$keyPath string
리턴 void

host() 공개 메소드

Get the real hostname for the given path, checking links.
public host ( string $path ) : string | null
$path string
리턴 string | null

resecureForNewDomain() 공개 메소드

Resecure all currently secured sites with a fresh domain.
public resecureForNewDomain ( string $oldDomain, string $domain ) : void
$oldDomain string
$domain string
리턴 void

secure() 공개 메소드

Secure the given host with TLS.
public secure ( string $url ) : void
$url string
리턴 void

secured() 공개 메소드

Get all of the URLs that are currently secured.
public secured ( ) : array
리턴 array

sitesPath() 공개 메소드

Get the path to the linked Valet sites.
public sitesPath ( ) : string
리턴 string

trustCertificate() 공개 메소드

Trust the given certificate file in the Mac Keychain.
public trustCertificate ( string $crtPath ) : void
$crtPath string
리턴 void

unsecure() 공개 메소드

Unsecure the given URL so that it will use HTTP again.
public unsecure ( string $url ) : void
$url string
리턴 void

프로퍼티 상세

$cli 공개적으로 프로퍼티

public $cli

$config 공개적으로 프로퍼티

public $config

$files 공개적으로 프로퍼티

public $files