This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Routing
Fabien Potencier 98051e909f feature #19604 [Routing] Add seamless support for unicode requirements (nicolas-grekas)
This PR was merged into the 3.2-dev branch.

Discussion
----------

[Routing] Add seamless support for unicode requirements

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #3629, #5236, #19562
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/6890

This PR adds unicode support to route matching and generation by automatically adding the `u` modifier to regexps that use either unicode characters or unicode enabled character classes (e.g. `\p...` `\x{...}` `\X`).

As a side note, if one wants to match a single unicode character (vs a single byte), one should use `\PM` or `\X` instead of `.` *or* set the `unicode` parameter to true.

Commits
-------

a829d34 [Routing] Add seamless support for unicode requirements
2016-08-25 11:15:34 -07:00
..
Annotation Merge branch '2.8' into 3.0 2016-06-29 07:40:00 +02:00
Exception remove api tags from code 2015-09-28 19:11:22 +02:00
Generator feature #19604 [Routing] Add seamless support for unicode requirements (nicolas-grekas) 2016-08-25 11:15:34 -07:00
Loader rename boolean and integer to bool and int 2016-07-01 10:30:59 +02:00
Matcher [Routing] Add seamless support for unicode requirements 2016-08-25 11:23:01 +02:00
Tests feature #19604 [Routing] Add seamless support for unicode requirements (nicolas-grekas) 2016-08-25 11:15:34 -07:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Routing] Add seamless support for unicode requirements 2016-08-25 11:23:01 +02:00
CompiledRoute.php [2.3] CS And DocBlock Fixes 2014-12-22 16:58:09 +01:00
composer.json updated version to 3.2 2016-05-13 13:13:23 -05:00
LICENSE Update copyright year 2016-01-01 23:53:47 -03:00
phpunit.xml.dist Add missing exclusions from phpunit.xml.dist 2015-11-18 09:19:46 +01:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
RequestContext.php Merge branch '2.3' into 2.7 2015-09-29 14:06:14 +02:00
RequestContextAwareInterface.php remove api tags from code 2015-09-28 19:11:22 +02:00
Route.php [Routing] Add seamless support for unicode requirements 2016-08-25 11:23:01 +02:00
RouteCollection.php add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support 2016-06-17 14:42:34 +02:00
RouteCollectionBuilder.php Merge branch '2.8' into 3.0 2016-04-28 11:48:42 +02:00
RouteCompiler.php [Routing] Add seamless support for unicode requirements 2016-08-25 11:23:01 +02:00
RouteCompilerInterface.php renamed hostname to host in the routing system (closes #6775) 2013-01-21 17:57:32 +01:00
Router.php Merge branch '2.8' into 3.1 2016-08-16 07:58:24 -07:00
RouterInterface.php fixed CS 2012-07-09 14:54:20 +02:00

Routing Component

The Routing component maps an HTTP request to a set of configuration variables.

Resources