Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
9 changed files
with
69 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
blog_show: | blog_show: | ||
resource: validpattern.yml | resource: validpattern.yml | ||
pattern: /test | path: /test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
blog_show: | blog_show: | ||
pattern: /blog/{slug} | path: /blog/{slug} | ||
type: custom | type: custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,2 @@ | |||
"#$péß^a|": | "#$péß^a|": | ||
pattern: "true" | path: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,17 @@ | |||
blog_show: | 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} | pattern: /blog/{slug} | ||
defaults: { _controller: MyBlogBundle:Blog:show } | defaults: { _controller: MyBlogBundle:Blog:show } | ||
host : "{locale}.example.com" | host: "{locale}.example.com" | ||
requirements: { '_method': 'GET', 'locale': '\w+' } | requirements: { '_method': 'GET', 'locale': '\w+', _scheme: 'https' } | ||
options: | options: | ||
compiler_class: RouteCompiler | compiler_class: RouteCompiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters