zfcampus / zf-console

Create console applications in PHP
BSD 3-Clause "New" or "Revised" License
64 stars 25 forks source link

The best way to remove autocomplete route? #17

Closed ArnaudLigny closed 9 years ago

ArnaudLigny commented 9 years ago

Hello,

What is the best way to remove/disable the default "autocomplete" route?

Thank you.

RalfEggert commented 9 years ago

Currently, it is only possible to overwrite the standard autocomplete route by passing a custom autocomplete route to the constructor of ZF\Console\Application. The same issue exists for the standard help and version routes. Furthermore, it is not possible to remove a route from ZF\Console\RouteCollection once it was added.

It would need some refactoring to make it possible to turn of these standard routes.

weierophinney commented 9 years ago

Fixed with #18.