com\setasign\SetaFramework\Router\DynamicRoute
FileRoute
File: /SetaFramework/src/Router/DynamicRoute/FileRoute.php
Class hierarchy
Summary
Properties
$after
public DynamicRoute::$after
$before
public DynamicRoute::$before
$name
public DynamicRoute::$name
$priority
public DynamicRoute::$priority
Methods
__construct()
public FileRoute::__construct (
string $file,
?string $name = null,
string $before = '',
string $after = '',
int $priority = \com\setasign\SetaFramework\Router\AbstractRouter::DEFAULT_PRIORITY
)?string $name = null,
string $before = '',
string $after = '',
int $priority = \com\setasign\SetaFramework\Router\AbstractRouter::DEFAULT_PRIORITY
Constructor
The File Route match if you try to call a special file ($file).
If the requestPathPrefix doesn't match the route will fail.
Parameters
- $file : string
Filename with path, exclude the requestPathPrefix
- $name : ?string
- $before : string
- $after : string
- $priority : int
build()
public FileRoute::build (
string $requestPathPrefix
): \com\setasign\SetaFramework\Router\Route\FileParameters
- $requestPathPrefix : string
