You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/3rdparty/symfony/routing/Symfony/Component/Routing
Bart Visscher c1c76539cc Include copy of Symfony routing component, and don't use composer 13 years ago
..
Annotation Include copy of Symfony routing component, and don't use composer 13 years ago
Exception Include copy of Symfony routing component, and don't use composer 13 years ago
Generator Include copy of Symfony routing component, and don't use composer 13 years ago
Loader Include copy of Symfony routing component, and don't use composer 13 years ago
Matcher Include copy of Symfony routing component, and don't use composer 13 years ago
CompiledRoute.php Include copy of Symfony routing component, and don't use composer 13 years ago
LICENSE Include copy of Symfony routing component, and don't use composer 13 years ago
README.md Include copy of Symfony routing component, and don't use composer 13 years ago
RequestContext.php Include copy of Symfony routing component, and don't use composer 13 years ago
RequestContextAwareInterface.php Include copy of Symfony routing component, and don't use composer 13 years ago
Route.php Include copy of Symfony routing component, and don't use composer 13 years ago
RouteCollection.php Include copy of Symfony routing component, and don't use composer 13 years ago
RouteCompiler.php Include copy of Symfony routing component, and don't use composer 13 years ago
RouteCompilerInterface.php Include copy of Symfony routing component, and don't use composer 13 years ago
Router.php Include copy of Symfony routing component, and don't use composer 13 years ago
RouterInterface.php Include copy of Symfony routing component, and don't use composer 13 years ago
composer.json Include copy of Symfony routing component, and don't use composer 13 years ago

README.md

Routing Component

Routing associates a request with the code that will convert it to a response.

The example below demonstrates how you can set up a fully working routing system:

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;

$routes = new RouteCollection();
$routes->add('hello', new Route('/hello', array('controller' => 'foo')));

$context = new RequestContext();

// this is optional and can be done without a Request instance
$context->fromRequest(Request::createFromGlobals());

$matcher = new UrlMatcher($routes, $context);

$parameters = $matcher->match('/hello');

Resources

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Routing