EasyEngine / EasyEngine/easyengine

Add support for deprecated-alias annotation

Aperta
#1,606 1 commento 0 reazioni 1 assegnatario Assegnata a @danish17 Vedi su GitHub
Lingua principale
PHP
Stelle
2.2k
Fork
424
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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"
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.