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

EE::notice() support #1582

Closed

Conversation

danish17
Copy link
Contributor

What's changed

Instead of using EE::warning() to output (deprecation) notices, EE::notice() can be used. EE::notice() will print a nice deprecation notice prefixed with "Notice: " in yellow.
It is being used for printing deprecation notices while using ee auth create/delete.

Files

  • php/EE/Loggers/Regular.php
  • php/EE/Runner.php
  • php/class-ee.php

When calling ee auth create or ee auth delete, a deprecation warning will be shown. create/delete is add/remove now.
Instead of using EE::warning(), EE::notice() can be used to print (deprecation) notices.
Prints a message prefixed with "Notice: " in yellow.
@kirtangajjar
Copy link
Contributor

@danish17 I have a better approach to accomplish the same thing you did here. Checkout - #1606.

It's better as in:

  1. It will be reusable.
  2. The code will be modular and won't have hard coded dependency as in this PR. i.e. We're adding logic which should essentially be in auth-command in core.

Because of these resons, it's best that you create a new PR addressing the above points. I'll be closing this PR for now.

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.

2 participants