简体   繁体   中英

How to remove console command in symfony2

I have registered EkinoNewRelic bundle and its all working however it also registers new console command called newrelic:notify-deployment .

How to remove this command from app/console without changing original code?

I think you can't disable it. Instead, you should override it so it would just print something like "Command disabled, use acme:notify-deployment instead." and return.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM