CLIFramework icon indicating copy to clipboard operation
CLIFramework copied to clipboard

Provide migration path to 2.*

Open igorsantos07 opened this issue 10 years ago • 4 comments

I have an application that currently depends on 1.5.* branch. It seems the package got a lot of updates since them, things got deprecated and others simply don't work anymore.

However, I can't see anything useful in the README or CHANGELOG files. Please, is there any help on updating the package? It's very bad for users when packages get upgraded without info on how to upgrade.

igorsantos07 avatar Jun 03 '15 15:06 igorsantos07

I remember the deprecated method was registerCommand, please replace them with command(...)

Also please check out our example application, it will show you the API (it's basically the same):

  • Application: https://github.com/c9s/CLIFramework/blob/master/tests/DemoApp/Application.php
  • Command: https://github.com/c9s/CLIFramework/blob/master/tests/DemoApp/Command/AddCommand.php

The new things in Command is that arguments method, you can define the argument info to generate your completion script (both bash and zsh)

The change log is here: https://github.com/c9s/CLIFramework/blob/master/CHANGELOG.md

c9s avatar Jun 03 '15 16:06 c9s

If you're using some CLIFramework API, there is a new service container based on pimple:

https://github.com/c9s/CLIFramework/blob/master/src/CLIFramework/ServiceContainer.php

c9s avatar Jun 03 '15 16:06 c9s

Does it work for you?

c9s avatar Jun 16 '15 11:06 c9s

Hi @igorsantos07,

Just updated the documentation for some components: https://github.com/c9s/CLIFramework/wiki

c9s avatar Jul 15 '15 01:07 c9s