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

Push deprecated warnings to log #2701

Merged
merged 4 commits into from Jun 7, 2017

Conversation

nitriques
Copy link
Member

I've logged all method calls. Defines are pretty hard to catch, so it's
a can't do. I've also fixed some docs along the way.

Fixes #2693

It also adds stack trace info in deprecate message

I've logged all method calls. Defines are pretty hard to catch, so it's
a can't do. I've also fixed some docs along the way.

Fixes symphonycms#2693
* If `$writeToLog` is passed, this function will return boolean, otherwise
* void
*/
public function pushDeprecateWarningToLog($method, $alternative = null, array $opts = array())
Copy link
Member

Choose a reason for hiding this comment

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

This is nice, only thing I can think of adding would be the removed version (if applicable). eg. The method blahis deprecated and will be removed in v3.0.0. Please usefoo instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice idea!

Copy link
Member Author

Choose a reason for hiding this comment

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

@brendo See ca36cf0 and how using the "array of settings" pattern makes it simple to add it ;)

michael-e
michael-e previously approved these changes Jun 6, 2017
@nitriques nitriques merged commit 0123619 into symphonycms:2.7.x Jun 7, 2017
@nitriques nitriques deleted the log-deprecated branch June 7, 2017 17:07
nitriques added a commit that referenced this pull request Jun 16, 2017
I've logged all method calls. Defines are pretty hard to catch, so it's
a can't do. I've also fixed some docs along the way.

The logs also includes the stack trace info in deprecate message and the removal Symphony version.

Fixes #2693

Picked from 0123619
nitriques added a commit that referenced this pull request Jun 16, 2017
I've logged all method calls. Defines are pretty hard to catch, so it's
a can't do. I've also fixed some docs along the way.

The logs also includes the stack trace info in deprecate message and the removal Symphony version.

Fixes #2693

Picked from 0123619
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.

None yet

3 participants