EasyEngine / EasyEngine/easyengine
Add support for deprecated-alias annotation
Open
- 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
Assessment
This issue has not been assessed yet.