PHP Class ValetDriver

Afficher le fichier Open project: laravel/valet Class Usage Examples

Méthodes publiques

Méthode Description
assign ( string $sitePath, string $siteName, string $uri ) : ValetDriver | null Find a driver that can serve the incoming request.
driversIn ( string $path ) : array Get all of the driver classes in a given path.
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.
mutateUri ( string $uri ) : string Mutate the incoming URI.
serveStaticFile ( string $staticFilePath, string $sitePath, string $siteName, string $uri ) : void Serve the static file at the given path.
serves ( string $sitePath, string $siteName, string $uri ) : boolean Determine if the driver serves the request.

Méthodes protégées

Méthode Description
isActualFile ( string $path ) : boolean Determine if the path is a file and not a directory.

Method Details

assign() public static méthode

Find a driver that can serve the incoming request.
public static assign ( string $sitePath, string $siteName, string $uri ) : ValetDriver | null
$sitePath string
$siteName string
$uri string
Résultat ValetDriver | null

driversIn() public static méthode

Get all of the driver classes in a given path.
public static driversIn ( string $path ) : array
$path string
Résultat array

frontControllerPath() abstract public méthode

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

isActualFile() protected méthode

Determine if the path is a file and not a directory.
protected isActualFile ( string $path ) : boolean
$path string
Résultat boolean

isStaticFile() abstract public méthode

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

mutateUri() public méthode

Mutate the incoming URI.
public mutateUri ( string $uri ) : string
$uri string
Résultat string

serveStaticFile() public méthode

Serve the static file at the given path.
public serveStaticFile ( string $staticFilePath, string $sitePath, string $siteName, string $uri ) : void
$staticFilePath string
$sitePath string
$siteName string
$uri string
Résultat void

serves() abstract public méthode

Determine if the driver serves the request.
abstract public serves ( string $sitePath, string $siteName, string $uri ) : boolean
$sitePath string
$siteName string
$uri string
Résultat boolean