EasyEngine / EasyEngine/easyengine

Add support for deprecated-alias annotation

Open
#1,606 1 comment 0 reactions 1 assignee Assigned to @danish17 View on GitHub
Dominant language
PHP
Stars
2.2k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

Right now, we have `@alias` annotation for addling alias. It's example usage can be seen [here](https://github.com/EasyEngine/site-command/blob/develop/src/helper/class-ee-site.php#L1590)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.