Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FrameworkBundle] add test for #5135 and simplify routing container parameter resolution #9370

Merged
merged 2 commits into from Oct 31, 2013

Conversation

Tobion
Copy link
Member

@Tobion Tobion commented Oct 24, 2013

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixes #5135
Tests pass? yes
license? MIT
  1. [FrameworkBundle] added working test case for issue Routing, default {_locale} pararameter and link to index #5135
  2. [FrameworkBundle] fix routing container parameter exception message which did not really make sense and improve regex performance

$key = strtolower($match[1]);

if (!$container->hasParameter($key)) {
throw new ParameterNotFoundException($key);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strtolower and ParameterNotFoundException is already handled by Container::getParameter

also improve regex performance and fix implementation-specific written tests and typo
fabpot added a commit that referenced this pull request Oct 31, 2013
… container parameter resolution (Tobion)

This PR was merged into the 2.2 branch.

Discussion
----------

[FrameworkBundle] add test for #5135 and simplify routing container parameter resolution

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixes   | #5135
| Tests pass?   | yes
| license?      | MIT

1. [FrameworkBundle] added working test case for issue #5135
2. [FrameworkBundle] fix routing container parameter exception message which did not really make sense and improve regex performance

Commits
-------

719e037 [FrameworkBundle] fix routing container parameter exception message
8513ac9 [Routing] added working test case for issue #5135
@fabpot fabpot merged commit 719e037 into symfony:2.2 Oct 31, 2013
@Tobion Tobion deleted the issue-5135 branch October 31, 2013 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants