PHP Класс SinglePageApplicationValetDriver

Наследование: extends ValetDriver
Показать файл Открыть проект

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

Метод Описание
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 ) Determine if the driver serves the request.

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

Метод Описание
driverDefinedInPackage ( string $sitePath ) : mixed Check the app package.json file to see if valet drive is defined.
hasIndexHtmlFileAtRoot ( sring $sitePath ) : boolean Check to see if the app has an index.html file in a common location.
hasSpaDirectories ( string $sitePath ) : boolean Check if the app has common spa directories.

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

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

Check the app package.json file to see if valet drive is defined.
protected driverDefinedInPackage ( string $sitePath ) : mixed
$sitePath string
Результат mixed

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

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

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

Check to see if the app has an index.html file in a common location.
protected hasIndexHtmlFileAtRoot ( sring $sitePath ) : boolean
$sitePath sring
Результат boolean

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

Check if the app has common spa directories.
protected hasSpaDirectories ( string $sitePath ) : boolean
$sitePath string
Результат boolean

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

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

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

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