platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
224 stars 121 forks source link

support symfony 4.x #789

Open staabm opened 5 years ago

staabm commented 5 years ago

atm I use platformsh/cli as a "global composer" dependency. in my setup platformsh/cli is the only package which hard depends on symfony 3.x.

because of this hard-dependency on sf 3.x I cannot install tools which require 4.x.

it would be great if the platformsh-cli tool would work with 3.x and 4.x (in most tool this is not a problem because of the symfony backwards compatibility policy)

pjcdawkins commented 5 years ago

Version 4.x of the CLI will use Symfony 4 (it would be a breaking change for the CLI because of the increased PHP version requirements).

atm I use platformsh/cli as a "global composer" dependency

It's not recommended by Composer to do this for any tool (https://github.com/composer/composer/issues/5390). The alternatives are:

staabm commented 5 years ago

Thx for the feedback and the suggestions.

I am aware of those „install-methods“ but prefer composer global for simplicity reasons.

My suggestion with this issue would be to try to support symfony 3.x i tandem with 4.x. That way the users php version would dictate which components would be used and you wouldnt need a bc breaking change/new major versions