Skip to content

[EventDispatcher] remove deprecated features #22796

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

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 20, 2017

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

@xabbuh xabbuh added this to the 4.0 milestone May 20, 2017
@xabbuh xabbuh force-pushed the event-dispatcher-remove-deprecated-features branch from 0e66009 to dbd7e50 Compare May 20, 2017 07:37
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

The following assignment

$deprecationWhitelist = array('event_dispatcher' => ContainerAwareEventDispatcher::class);
should be removed with usage below (see #22223)

@@ -7,7 +7,7 @@
<services>
<defaults public="false" />

<service id="event_dispatcher" class="Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher" public="true">
<service id="event_dispatcher" class="Symfony\Component\EventDispatcher\EventDispatcher" public="true">
<argument type="service" id="service_container" />
Copy link
Contributor

@Koc Koc May 20, 2017

Choose a reason for hiding this comment

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

does this argument not require changes?

@xabbuh xabbuh force-pushed the event-dispatcher-remove-deprecated-features branch 2 times, most recently from 0eb15ca to a7fae50 Compare May 20, 2017 13:52
@nicolas-grekas
Copy link
Member

Looks like 3.4 doesn't like this change - forward layer missing?

@xabbuh
Copy link
Member Author

xabbuh commented May 21, 2017

see #22814

nicolas-grekas added a commit that referenced this pull request May 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[FrameworkBundle] FC with EventDispatcher 4.0

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22796 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

b7c76f7 [FrameworkBundle] FC with EventDispatcher 4.0
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull request May 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[FrameworkBundle] FC with EventDispatcher 4.0

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/symfony#22796 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

b7c76f7 [FrameworkBundle] FC with EventDispatcher 4.0
nicolas-grekas added a commit that referenced this pull request May 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[FrameworkBundle] FC with EventDispatcher 4.0

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #22796 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

b7c76f7 [FrameworkBundle] FC with EventDispatcher 4.0
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull request May 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[FrameworkBundle] FC with EventDispatcher 4.0

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/symfony#22796 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

b7c76f7 [FrameworkBundle] FC with EventDispatcher 4.0
@xabbuh xabbuh force-pushed the event-dispatcher-remove-deprecated-features branch from a7fae50 to 598bec4 Compare May 21, 2017 09:09
@xabbuh
Copy link
Member Author

xabbuh commented May 21, 2017

builds are green, ready to be reviewed

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

👍

@@ -309,7 +300,6 @@ public function load(array $configs, ContainerBuilder $container)
'Symfony\\Component\\DependencyInjection\\Container',

'Symfony\\Component\\EventDispatcher\\Event',
'Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher',
Copy link
Member

Choose a reason for hiding this comment

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

I think you should revert this line: it will only create a conflict with that other PR removing the block

Copy link
Contributor

@Koc Koc May 21, 2017

Choose a reason for hiding this comment

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

without this change it would add to class cache non-existent class. Maybe better merge #22786 first

Copy link
Member

Choose a reason for hiding this comment

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

ok merged, asis, #22786 already has conflicts to fix

Copy link
Member Author

Choose a reason for hiding this comment

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

@Koc Actually, that would not have been an issue. This part of the code is never executed on PHP 7 (which is a requirement for Symfony 4).

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 598bec4 into symfony:master May 21, 2017
nicolas-grekas added a commit that referenced this pull request May 21, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[EventDispatcher] remove deprecated features

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

Commits
-------

598bec4 [EventDispatcher] remove deprecated features
@xabbuh xabbuh deleted the event-dispatcher-remove-deprecated-features branch May 21, 2017 09:55
@fabpot fabpot mentioned this pull request Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants