Property | 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 |
Method | 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 ) |
Method | 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). |
return |
public generate ( $name, $parameters = [], $referenceType = self::ABSOLUTE_PATH ) |
public get_generator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface | ||
return | Symfony\Component\Routing\Generator\UrlGeneratorInterface | A UrlGeneratorInterface instance |
public get_matcher ( ) : Symfony\Component\Routing\Matcher\UrlMatcherInterface | ||
return | Symfony\Component\Routing\Matcher\UrlMatcherInterface | A UrlMatcherInterface instance |
public get_routes ( ) : |
||
return | Get the route collection |
public setContext ( Symfony\Component\Routing\RequestContext $context ) | ||
$context | Symfony\Component\Routing\RequestContext |
protected RequestContext,Symfony\Component\Routing $context | ||
return | Symfony\Component\Routing\RequestContext |
protected string $environment | ||
return | string |
protected manager,phpbb\extension $extension_manager | ||
return | phpbb\extension\manager |
protected filesystem_interface,phpbb\filesystem $filesystem | ||
return | phpbb\filesystem\filesystem_interface |
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator|null $generator | ||
return | Symfony\Component\Routing\Generator\UrlGeneratorInterface | null |
protected UrlMatcherInterface,Symfony\Component\Routing\Matcher|null $matcher | ||
return | Symfony\Component\Routing\Matcher\UrlMatcherInterface | null |
protected string $phpbb_root_path | ||
return | string |
protected RouteCollection,Symfony\Component\Routing|null $route_collection | ||
return |
protected array $routing_files | ||
return | array |