PHP Class BasicValetDriver

Inheritance: extends ValetDriver
Mostra file Open project: laravel/valet Class Usage Examples

Public Methods

Method Description
frontControllerPath ( string $sitePath, string $siteName, string $uri ) : string Get the fully resolved path to the application's front controller.
isStaticFile ( string $sitePath, string $siteName, string $uri ) : string | false Determine if the incoming request is for a static file.
serves ( string $sitePath, string $siteName, string $uri ) : boolean Determine if the driver serves the request.

Protected Methods

Method Description
asActualFile ( string $sitePath, string $uri ) : string Concatenate the site path and URI as a single file name.
asHtmlIndexFileInDirectory ( string $sitePath, string $uri ) : string Format the site path and URI with a trailing "index.html".
asPhpIndexFileInDirectory ( string $sitePath, string $uri ) : string Format the site path and URI with a trailing "index.php".
asPublicHtmlIndexFile ( string $sitePath ) : string Format the incoming site path as a "public/index.php" file path.
asPublicPhpIndexFile ( string $sitePath ) : string Format the incoming site path as a "public/index.php" file path.
asRootPhpIndexFile ( string $sitePath ) : string Format the incoming site path as root "index.php" file path.

Method Details

asActualFile() protected method

Concatenate the site path and URI as a single file name.
protected asActualFile ( string $sitePath, string $uri ) : string
$sitePath string
$uri string
return string

asHtmlIndexFileInDirectory() protected method

Format the site path and URI with a trailing "index.html".
protected asHtmlIndexFileInDirectory ( string $sitePath, string $uri ) : string
$sitePath string
$uri string
return string

asPhpIndexFileInDirectory() protected method

Format the site path and URI with a trailing "index.php".
protected asPhpIndexFileInDirectory ( string $sitePath, string $uri ) : string
$sitePath string
$uri string
return string

asPublicHtmlIndexFile() protected method

Format the incoming site path as a "public/index.php" file path.
protected asPublicHtmlIndexFile ( string $sitePath ) : string
$sitePath string
return string

asPublicPhpIndexFile() protected method

Format the incoming site path as a "public/index.php" file path.
protected asPublicPhpIndexFile ( string $sitePath ) : string
$sitePath string
return string

asRootPhpIndexFile() protected method

Format the incoming site path as root "index.php" file path.
protected asRootPhpIndexFile ( string $sitePath ) : string
$sitePath string
return string

frontControllerPath() public method

Get the fully resolved path to the application's front controller.
public frontControllerPath ( string $sitePath, string $siteName, string $uri ) : string
$sitePath string
$siteName string
$uri string
return string

isStaticFile() public method

Determine if the incoming request is for a static file.
public isStaticFile ( string $sitePath, string $siteName, string $uri ) : string | false
$sitePath string
$siteName string
$uri string
return string | false

serves() public method

Determine if the driver serves the request.
public serves ( string $sitePath, string $siteName, string $uri ) : boolean
$sitePath string
$siteName string
$uri string
return boolean