Skip to content

Various fixes #12285

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

Merged
merged 3 commits into from
Oct 26, 2014
Merged

Various fixes #12285

merged 3 commits into from
Oct 26, 2014

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #12278
License MIT
Doc PR -

A 3 in one PR (diff is best viewed with whitespaces ignored):

  • changed the way the DebugHandlerListeners desactivates itself
  • reduced a N×N iteration to a N one in ContainerAwareEventListener::removeListener
  • fixed an issue in VarDumper

list($serviceId, $method, $priority) = $args;
$key = $serviceId.'.'.$method;
if (isset($this->listeners[$eventName][$key])) {
if ($listener === array($this->listeners[$eventName][$key], $method)) {
Copy link
Member

Choose a reason for hiding this comment

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

you could use && instead of a nested if

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@stof
Copy link
Member

stof commented Oct 22, 2014

👍

@fabpot
Copy link
Member

fabpot commented Oct 26, 2014

Thank you @nicolas-grekas.

@fabpot fabpot merged commit ac8efd9 into symfony:master Oct 26, 2014
fabpot added a commit that referenced this pull request Oct 26, 2014
This PR was merged into the 2.6-dev branch.

Discussion
----------

Various fixes

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

A 3 in one PR (diff is best viewed [with whitespaces ignored](https://github.com/symfony/symfony/pull/12285/files?w=1)):
- changed the way the DebugHandlerListeners desactivates itself
- reduced a N×N iteration to a N one in ContainerAwareEventListener::removeListener
- fixed an issue in VarDumper

Commits
-------

ac8efd9 [HttpKernel] fix DebugHandlersListener
5af0f89 [EventDispatcher] perf optim
c7cf6cf [VarDumper] fix control chars styling
@nicolas-grekas nicolas-grekas deleted the various-fixes branch November 10, 2014 15:22
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.

3 participants