Permalink
Please sign in to comment.
Browse files
merged branch fabpot/pattern-fix (PR #6998)
This PR was merged into the 2.2 branch. Commits ------- 73aa7d1 replaced usage of the deprecated pattern routing key (replaced with path) Discussion ---------- replaced usage of the deprecated pattern routing key (replaced with path) | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a --------------------------------------------------------------------------- by lsmith77 at 2013-02-07T13:35:54Z do we have tests to cover the BC behavior? --------------------------------------------------------------------------- by fabpot at 2013-02-07T16:30:31Z I've just added some tests for the legacy way.
- Loading branch information...
Showing
with
69 additions
and 32 deletions.
- +1 −1 Tests/Fixtures/nonesense_resource_plus_path.yml
- +1 −1 Tests/Fixtures/nonesense_type_without_resource.yml
- +1 −1 Tests/Fixtures/special_route_name.yml
- +10 −1 Tests/Fixtures/validpattern.php
- +8 −1 Tests/Fixtures/validpattern.xml
- +12 −2 Tests/Fixtures/validpattern.yml
- +10 −7 Tests/Loader/PhpFileLoaderTest.php
- +14 −9 Tests/Loader/XmlFileLoaderTest.php
- +12 −9 Tests/Loader/YamlFileLoaderTest.php
@@ -1,3 +1,3 @@ | ||
blog_show: | ||
resource: validpattern.yml | ||
- pattern: /test | ||
+ path: /test |
@@ -1,3 +1,3 @@ | ||
blog_show: | ||
- pattern: /blog/{slug} | ||
+ path: /blog/{slug} | ||
type: custom |
@@ -1,2 +1,2 @@ | ||
"#$péß^a|": | ||
- pattern: "true" | ||
+ path: "true" |
@@ -1,7 +1,17 @@ | ||
blog_show: | ||
+ path: /blog/{slug} | ||
+ defaults: { _controller: MyBlogBundle:Blog:show } | ||
+ host: "{locale}.example.com" | ||
+ requirements: { 'locale': '\w+' } | ||
+ methods: ['GET'] | ||
+ schemes: ['https'] | ||
+ options: | ||
+ compiler_class: RouteCompiler | ||
+ | ||
+blog_show_legacy: | ||
pattern: /blog/{slug} | ||
defaults: { _controller: MyBlogBundle:Blog:show } | ||
- host : "{locale}.example.com" | ||
- requirements: { '_method': 'GET', 'locale': '\w+' } | ||
+ host: "{locale}.example.com" | ||
+ requirements: { '_method': 'GET', 'locale': '\w+', _scheme: 'https' } | ||
options: | ||
compiler_class: RouteCompiler |
0 comments on commit
ee51599