gibilogic / tinymce-bundle

Bundle for connecting TinyMCE (WYSIWYG editor) to your Symfony2 project
7 stars 5 forks source link

sensio/distribution-bundle version dependency #15

Closed steven-pribilinskiy closed 8 years ago

steven-pribilinskiy commented 8 years ago

We use symfony-standard 2.7 framework and it depends on sensio/distribution-bundle ~4.0. Could the version of distribution-bundle bundle raised to ~4.0 for tinymce-bundle?

zanardigit commented 8 years ago

Sort of. If we just change it to

"sensio/distribution-bundle": "~4.0"

the package will not work anymore on previous Symfony versions, which does not really make sense. We have two options.

1. Open to any future version

"sensio/distribution-bundle": ">=3.0.12"

This is coherent with "symfony/symfony": ">=2.1".

2. Only add the 4.0 version

"sensio/distribution-bundle": "~3.0|~4.0,>=3.0.12"

@pribilinskiy @Ingannatore what do you think is best?

steven-pribilinskiy commented 8 years ago

@zanardigit sure, the 2nd version is better. Didn't knew about the | in semver

MisatoTremor commented 8 years ago

@zanardigit @pribilinskiy This again breaks for symfony-standard 2.8 & 3.0 which require ~5.0 and ^5.0 of distribution-bundle respectively. Therefore I'd say the first option should be used. The second option will always need to be changed when newer symfony-standard versions require newer distribution-bundle. With option one this is not needed and it only needs to be changed if there'll ever be a distribution-bundle version released which breaks BC.

steven-pribilinskiy commented 8 years ago

+1 for >=3.0.12

nykopol commented 8 years ago

thanks @zanardigit for the fix. Can you please tag a new version that include that ?

zanardigit commented 8 years ago

Tagged 1.1.1. Will be available on Packagist shortly.

MisatoTremor commented 8 years ago

@zanardigit 1.1.1 is around since october, but it points to the "old" change commit (5c612eb). Or did you mean that you will create a new tag (1.1.2) for the new commit (50da21c)?

zanardigit commented 8 years ago

My mistake, re-tagged correctly to the latest change (https://github.com/gibilogic/tinymce-bundle/commit/50da21c9bff4e405e4a591cb47a595a5e6a648ac).

MisatoTremor commented 8 years ago

Thanks :+1: