PHP 클래스 phpbb\routing\router

상속: implements Symfony\Component\Routing\RouterInterface
파일 보기 프로젝트 열기: phpbb/phpbb 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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