PHP Класс ValetDriver

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
isActualFile ( string $path ) : boolean Determine if the path is a file and not a directory.

Описание методов

assign() публичный статический Метод

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
Результат ValetDriver | null

driversIn() публичный статический Метод

Get all of the driver classes in a given path.
public static driversIn ( string $path ) : array
$path string
Результат array

frontControllerPath() абстрактный публичный Метод

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
Результат string

isActualFile() защищенный Метод

Determine if the path is a file and not a directory.
protected isActualFile ( string $path ) : boolean
$path string
Результат boolean

isStaticFile() абстрактный публичный Метод

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
Результат string | false

mutateUri() публичный Метод

Mutate the incoming URI.
public mutateUri ( string $uri ) : string
$uri string
Результат string

serveStaticFile() публичный Метод

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
Результат void

serves() абстрактный публичный Метод

Determine if the driver serves the request.
abstract public serves ( string $sitePath, string $siteName, string $uri ) : boolean
$sitePath string
$siteName string
$uri string
Результат boolean