Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Deprecate ProvidesEvents trait #5283

Merged

Conversation

EvanDotPro
Copy link
Member

This trait was added before we had a naming convention for traits, and
has since been replaced by EventManagerAwareTrait. To help people
understand this, we should have the actual code in the correct trait,
and proxy the old one to the new one with a comment explaining what's
going on.

I also improved the docblocks a little bit while I was in there.

This trait was added before we had a naming convention for traits, and
has since been replaced by EventManagerAwareTrait. To help people
understand this, we should have the actual code in the correct trait,
and proxy the old one to the new one with a comment explaining what's
going on.
* A trait for objects that provide events
* NOTE: THIS TRAIT IS DEPRECATED! Please use EventManagerAwareTrait instead.
* This trait exists solely for backwards compatibility in the 2.x branch and
* willl likely be removed in 3.x.
Copy link
Member

Choose a reason for hiding this comment

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

a lot l in `will

@Maks3w
Copy link
Member

Maks3w commented Oct 16, 2013

Review end.

@@ -12,55 +12,11 @@
use Traversable;
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed too.

@marc-mabe
Copy link
Member

Should we add a trigger_error(..., E_USER_DEPRECATED) on loading the deprecated trait?

@EvanDotPro
Copy link
Member Author

@marc-mabe if so, I'd say maybe not until 2.3, but that's just a gut feeling.

@mwillbanks
Copy link
Contributor

@EvanDotPro @marc-mabe I agree that we should throw the E_USER_DEPRECATED in this sense.

@weierophinney
Copy link
Member

Add the E_USER_DEPRECATED call here, and target for 2.3.0, please.

weierophinney added a commit that referenced this pull request Oct 23, 2013
weierophinney added a commit that referenced this pull request Oct 23, 2013
@weierophinney weierophinney merged commit 266649d into zendframework:develop Oct 23, 2013
@ghost ghost assigned weierophinney Oct 23, 2013
@weierophinney
Copy link
Member

I added the E_USER_DEPRECATED notice to the classfile, and added a note in the README for the release.

weierophinney added a commit to zendframework/zend-eventmanager that referenced this pull request May 15, 2015
…eature/deprecate-old-traits

Deprecate ProvidesEvents trait
weierophinney added a commit to zendframework/zend-eventmanager that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-eventmanager that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants