Свойство | Type | Description | |
---|---|---|---|
$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 | |||
$routing_files | array | YAML file(s) containing route information |
Méthode | Description | |
---|---|---|
__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 = '' ) : |
Find a list of controllers | |
find_routing_files ( array $paths ) : |
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 ( ) : |
Get the list of routes | |
match ( $pathinfo ) | ||
setContext ( Symfony\Component\Routing\RequestContext $context ) |
Méthode | Description | |
---|---|---|
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 |
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 |
protected create_dumped_url_generator ( ) |
protected create_dumped_url_matcher ( ) |
protected create_new_url_generator ( ) |
protected create_new_url_matcher ( ) |
public find_routing_files ( array $paths ) : |
||
$paths | array | Array of paths where to look for routing files (they must be relative to the phpBB root path). |
Résultat |
public generate ( $name, $parameters = [], $referenceType = self::ABSOLUTE_PATH ) |
public get_generator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface | ||
Résultat | Symfony\Component\Routing\Generator\UrlGeneratorInterface | A UrlGeneratorInterface instance |
public get_matcher ( ) : Symfony\Component\Routing\Matcher\UrlMatcherInterface | ||
Résultat | Symfony\Component\Routing\Matcher\UrlMatcherInterface | A UrlMatcherInterface instance |
public get_routes ( ) : |
||
Résultat | Get the route collection |
public setContext ( Symfony\Component\Routing\RequestContext $context ) | ||
$context | Symfony\Component\Routing\RequestContext |
protected RequestContext,Symfony\Component\Routing $context | ||
Résultat | Symfony\Component\Routing\RequestContext |
protected string $environment | ||
Résultat | string |
protected manager,phpbb\extension $extension_manager | ||
Résultat | phpbb\extension\manager |
protected filesystem_interface,phpbb\filesystem $filesystem | ||
Résultat | phpbb\filesystem\filesystem_interface |
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator|null $generator | ||
Résultat | Symfony\Component\Routing\Generator\UrlGeneratorInterface | null |
protected UrlMatcherInterface,Symfony\Component\Routing\Matcher|null $matcher | ||
Résultat | Symfony\Component\Routing\Matcher\UrlMatcherInterface | null |
protected string $phpbb_root_path | ||
Résultat | string |
protected RouteCollection,Symfony\Component\Routing|null $route_collection | ||
Résultat |
protected array $routing_files | ||
Résultat | array |