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 = ''

$file

private FileRoute::$file

$name

$priority

public DynamicRoute::$priority = 50

Methods

__construct()

public FileRoute::__construct (
string $file,
?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
 

bind()

public DynamicRoute::bind (
string $applicationName,
string $controller,
string $method
): void
Parameters
$applicationName: string
 
$controller: string
 
$method: string
 

build()

public FileRoute::build (
string $requestPathPrefix
): \com\setasign\SetaFramework\Router\Route\File
Parameters
$requestPathPrefix: string
 

getBinding()

protected DynamicRoute::getBinding (
void
): array