PHP 클래스 ValetDriver

파일 보기 프로젝트 열기: laravel/valet 1 사용 예제들

공개 메소드들

메소드 설명
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