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

extract clone duplication logic in exceptionlistener #8716

Merged
merged 1 commit into from Aug 10, 2013

Conversation

dawehner
Copy link
Contributor

Drupal needs potentially to adapt the exception listener to add more information from the original request. (see http://drupal.org/node/2057607) so what about extracing some of the logic into a new method.

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT

@lyrixx
Copy link
Member

lyrixx commented Aug 10, 2013

You broke tests as you changed type of FlattenException

@dawehner
Copy link
Contributor Author

Good point. I am wondering whether adding Request in the use statements is right, as this kind of add a new depedency of the http kernel on the http foundation. Maybe this is already the case, so that is not a problem.

@lyrixx
Copy link
Member

lyrixx commented Aug 10, 2013

Yep. Already the case:

"symfony/http-foundation": "~2.2",

/**
* Clone the request for the exception.
*
* @param \Exception $exception
Copy link
Contributor

Choose a reason for hiding this comment

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

All phpdoc should in one line, the only exception is when description is really long.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! There we go

@fabpot
Copy link
Member

fabpot commented Aug 10, 2013

Looks good to me.

@dawehner
Copy link
Contributor Author

Thank you for the review ... fixed the codestyle issues.

fabpot added a commit that referenced this pull request Aug 10, 2013
This PR was merged into the master branch.

Discussion
----------

extract clone duplication logic in exceptionlistener

Drupal needs potentially to adapt the exception listener to add more information from the original request. (see http://drupal.org/node/2057607) so what about extracing some of the logic into a new method.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT

Commits
-------

6af2801 extract method
@fabpot fabpot closed this Aug 10, 2013
@fabpot fabpot merged commit 6af2801 into symfony:master Aug 10, 2013
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

4 participants