[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/phpbb/routing/ -> router.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 395 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

router:: (15 methods):
  __construct()
  get_routes()
  getRouteCollection()
  setContext()
  getContext()
  generate()
  match()
  get_matcher()
  create_dumped_url_matcher()
  create_new_url_matcher()
  get_generator()
  create_dumped_url_generator()
  create_new_url_generator()
  resolveParameters()
  resolve()


Class: router  - X-Ref

Integration of all pieces of the routing system for easier use.

__construct(ContainerInterface $container, resources_locator_interface $resources_locator, LoaderInterface $loader, $php_ext, $cache_dir)   X-Ref
Construct method

param: ContainerInterface            $container            DI container
param: resources_locator_interface    $resources_locator    Resources locator
param: LoaderInterface                $loader                Resources loader
param: string                        $php_ext            PHP file extension
param: string                        $cache_dir            phpBB cache directory

get_routes()   X-Ref
Get the list of routes

return: RouteCollection Get the route collection

getRouteCollection()   X-Ref
{@inheritdoc}


setContext(RequestContext $context)   X-Ref
{@inheritdoc}


getContext()   X-Ref
{@inheritdoc}


generate($name, $parameters = array()   X-Ref
{@inheritdoc}


match($pathinfo)   X-Ref
{@inheritdoc}


get_matcher()   X-Ref
Gets the UrlMatcher instance associated with this Router.

return: \Symfony\Component\Routing\Matcher\UrlMatcherInterface A UrlMatcherInterface instance

create_dumped_url_matcher()   X-Ref
Creates a new dumped URL Matcher (dump it if necessary)


create_new_url_matcher()   X-Ref
Creates a new URL Matcher


get_generator()   X-Ref
Gets the UrlGenerator instance associated with this Router.

return: \Symfony\Component\Routing\Generator\UrlGeneratorInterface A UrlGeneratorInterface instance

create_dumped_url_generator()   X-Ref
Creates a new dumped URL Generator (dump it if necessary)


create_new_url_generator()   X-Ref
Creates a new URL Generator


resolveParameters(RouteCollection $collection)   X-Ref
Replaces placeholders with service container parameter values in:
- the route defaults,
- the route requirements,
- the route path,
- the route host,
- the route schemes,
- the route methods.

param: RouteCollection $collection

resolve($value)   X-Ref
Recursively replaces placeholders with the service container parameters.

return: mixed The source with the placeholders replaced by the container
param: mixed $value The source which might contain "%placeholders%"



Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1