PHP Класс phpbb\routing\router

Наследование: implements Symfony\Component\Routing\RouterInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$context Symfony\Component\Routing\RequestContext
$environment string Name of the current environment
$extension_manager phpbb\extension\manager Extension manager
$filesystem phpbb\filesystem\filesystem_interface
$generator Symfony\Component\Routing\Generator\UrlGeneratorInterface | null
$matcher Symfony\Component\Routing\Matcher\UrlMatcherInterface | null
$php_ext string PHP file extensions
$phpbb_root_path string phpBB root path
$route_collection Symfony\Component\Routing\RouteCollection | null
$routing_files array YAML file(s) containing route information

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

Метод Описание
__construct ( phpbb\filesystem\filesystem_interface $filesystem, string $phpbb_root_path, string $php_ext, string $environment, phpbb\extension\manager $extension_manager = null, array $routing_files = [] ) Construct method
find ( string $base_path = '' ) : router Find a list of controllers
find_routing_files ( array $paths ) : router Find the list of routing files
generate ( $name, $parameters = [], $referenceType = self::ABSOLUTE_PATH )
getContext ( )
getRouteCollection ( )
get_generator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface Gets the UrlGenerator instance associated with this Router.
get_matcher ( ) : Symfony\Component\Routing\Matcher\UrlMatcherInterface Gets the UrlMatcher instance associated with this Router.
get_routes ( ) : RouteCollection Get the list of routes
match ( $pathinfo )
setContext ( Symfony\Component\Routing\RequestContext $context )

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

Метод Описание
create_dumped_url_generator ( ) Creates a new dumped URL Generator (dump it if necessary)
create_dumped_url_matcher ( ) Creates a new dumped URL Matcher (dump it if necessary)
create_new_url_generator ( ) Creates a new URL Generator
create_new_url_matcher ( ) Creates a new URL Matcher

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

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

Construct method
public __construct ( phpbb\filesystem\filesystem_interface $filesystem, string $phpbb_root_path, string $php_ext, string $environment, phpbb\extension\manager $extension_manager = null, array $routing_files = [] )
$filesystem phpbb\filesystem\filesystem_interface Filesystem helper
$phpbb_root_path string phpBB root path
$php_ext string PHP file extension
$environment string Name of the current environment
$extension_manager phpbb\extension\manager Extension manager
$routing_files array Array of strings containing paths to YAML files holding route information

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

Creates a new dumped URL Generator (dump it if necessary)

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

Creates a new dumped URL Matcher (dump it if necessary)

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

Creates a new URL Generator
protected create_new_url_generator ( )

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

Creates a new URL Matcher
protected create_new_url_matcher ( )

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

Find a list of controllers
public find ( string $base_path = '' ) : router
$base_path string Base path to prepend to file paths
Результат router

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

Find the list of routing files
public find_routing_files ( array $paths ) : router
$paths array Array of paths where to look for routing files (they must be relative to the phpBB root path).
Результат router

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

public generate ( $name, $parameters = [], $referenceType = self::ABSOLUTE_PATH )

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

public getContext ( )

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

public getRouteCollection ( )

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

Gets the UrlGenerator instance associated with this Router.
public get_generator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface
Результат Symfony\Component\Routing\Generator\UrlGeneratorInterface A UrlGeneratorInterface instance

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

Gets the UrlMatcher instance associated with this Router.
public get_matcher ( ) : Symfony\Component\Routing\Matcher\UrlMatcherInterface
Результат Symfony\Component\Routing\Matcher\UrlMatcherInterface A UrlMatcherInterface instance

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

Get the list of routes
public get_routes ( ) : RouteCollection
Результат Symfony\Component\Routing\RouteCollection Get the route collection

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

public match ( $pathinfo )

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

public setContext ( Symfony\Component\Routing\RequestContext $context )
$context Symfony\Component\Routing\RequestContext

Описание свойств

$context защищенное свойство

protected RequestContext,Symfony\Component\Routing $context
Результат Symfony\Component\Routing\RequestContext

$environment защищенное свойство

Name of the current environment
protected string $environment
Результат string

$extension_manager защищенное свойство

Extension manager
protected manager,phpbb\extension $extension_manager
Результат phpbb\extension\manager

$filesystem защищенное свойство

protected filesystem_interface,phpbb\filesystem $filesystem
Результат phpbb\filesystem\filesystem_interface

$generator защищенное свойство

protected UrlGeneratorInterface,Symfony\Component\Routing\Generator|null $generator
Результат Symfony\Component\Routing\Generator\UrlGeneratorInterface | null

$matcher защищенное свойство

protected UrlMatcherInterface,Symfony\Component\Routing\Matcher|null $matcher
Результат Symfony\Component\Routing\Matcher\UrlMatcherInterface | null

$php_ext защищенное свойство

PHP file extensions
protected string $php_ext
Результат string

$phpbb_root_path защищенное свойство

phpBB root path
protected string $phpbb_root_path
Результат string

$route_collection защищенное свойство

protected RouteCollection,Symfony\Component\Routing|null $route_collection
Результат Symfony\Component\Routing\RouteCollection | null

$routing_files защищенное свойство

YAML file(s) containing route information
protected array $routing_files
Результат array