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

Add support for deprecated-alias annotation #1606

Open
kirtangajjar opened this issue Oct 22, 2021 · 0 comments
Open

Add support for deprecated-alias annotation #1606

kirtangajjar opened this issue Oct 22, 2021 · 0 comments
Assignees

Comments

@kirtangajjar
Copy link
Contributor

kirtangajjar commented Oct 22, 2021

Right now, we have @alias annotation for addling alias. It's example usage can be seen here

Similarly, we need a @deprecated-alias specifically for commands which have been renamed and the old name is deprecated. It's example usage can be like:

/**
 * @deprecated-alias create
 */
public function add() {

}

It's functionality should be similar to alias, but it should also show an warning that:

Warning: "ee <command> create" has been deprecated and has been replaced by "ee <command> add"
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

No branches or pull requests

3 participants