Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will there be support Symfony 5.0? #1563

Closed
akaddev opened this issue Nov 22, 2019 · 18 comments
Closed

Will there be support Symfony 5.0? #1563

akaddev opened this issue Nov 22, 2019 · 18 comments

Comments

@akaddev
Copy link

akaddev commented Nov 22, 2019

"require": {
        "php": "^7.0",
        "symfony/framework-bundle": "^3.4|^4.0",
        "symfony/options-resolver": "^3.4.4|^4.0",
        "symfony/property-info": "^3.4|^4.0",
        "exsyst/swagger": "^0.4.1",
        "zircote/swagger-php": "^2.0.9",
        "phpdocumentor/reflection-docblock": "^3.1|^4.0"
    }
@maxhelias
Copy link
Contributor

See #1564
There is still work todo, some help would be welcome :)

@fma-technologies
Copy link

See #1564
There is still work todo, some help would be welcome :)

What can we do to help? :)

@maxhelias
Copy link
Contributor

@fma-technologies On the bundle itself nothing, bug FOSRestBundle is not compatible Sf5 yet

@ssaki
Copy link

ssaki commented Dec 4, 2019

@maxhelias would you then merge (and tag) the Sf 5 compatibility fixes? FOSRest is not a hard dependency as this bundle can be used without it. Or is there anything left that you need help with?

@maxhelias
Copy link
Contributor

@ssaki I am not allowed to do if you look at my status, I am only a "Contributor"

@maxhelias
Copy link
Contributor

Please see #1564 I added information

@gustawdaniel
Copy link

gustawdaniel commented Dec 13, 2019

Now there is error

$ composer require nelmio/api-doc-bundle
Using version ^3.5 for nelmio/api-doc-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for nelmio/api-doc-bundle ^3.5 -> satisfiable by nelmio/api-doc-bundle[v3.5.0].
    - nelmio/api-doc-bundle v3.5.0 requires symfony/framework-bundle ^3.4|^4.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

On page

https://packagist.org/packages/nelmio/api-doc-bundle

We can see that version v3.5.0 was released 2019-11-21 - one day before this issue.

Pull request #1564 was merged 2019-12-04
so to fix anyone need to install from master branch from github, no from packagist

To install this package with symfony 5

You need to add keys

    "minimum-stability": "dev",
    "prefer-stable": true

And execute

composer require nelmio/api-doc-bundle:dev-master

Sources

https://stackoverflow.com/questions/19916183/how-do-i-get-composer-to-download-the-latest-commit-in-the-master-branch-from-gi
phingofficial/phing#799
https://igor.io/2013/02/07/composer-stability-flags.html
https://symfonycasts.com/screencast/symfony2-ep1/composer

To close this issue new version on packagist should be published.

@maxhelias
Copy link
Contributor

So there's no error. 3.5 isn't compatible with Symfony 5.0. You just need patience until the next release.

BTW, be carefull with the "minimum-stability": "dev", because he's going to get all the dev-masters from all your dependencies. Juste the composer require on dev-master for your dependency is enough

@ThibaultVlacich
Copy link

When will a new version be released?

@AnthonyGWeb
Copy link

I hope soon :)

@izdrail
Copy link

izdrail commented Jan 15, 2020

me to :))

@cyanid
Copy link

cyanid commented Jan 19, 2020

Any updates? I really want to upgrade my project to Symfony5 but this is a showstopper for it.

@izdrail
Copy link

izdrail commented Jan 20, 2020

@ cyanid I'm using the dev-master and it's working for now for me

@isrenato
Copy link

When will a new (stable) version be released for Symfony 5.0?

@rvanlaak
Copy link

rvanlaak commented Feb 5, 2020

So there's no error. 3.5 isn't compatible with Symfony 5.0. You just need patience until the next release.
BTW, be carefull with the "minimum-stability": "dev", because he's going to get all the dev-masters from all your dependencies. Juste the composer require on dev-master for your dependency is enough

@maxhelias this is not the case, as minimum-stability is a root-only property. This means it only applies to your own composer.json.

We also are running dev-master on Sf 5.0.4 without any problems, but we are only using the json scheme output and are not using any of the html features of this bundle.

@gnutix
Copy link

gnutix commented Mar 3, 2020

Release ^3.6 works for me! Thanks a lot.

@GuilhemN GuilhemN closed this as completed Mar 3, 2020
@qanastek
Copy link

qanastek commented Jun 4, 2020

Downgrade to 3.6 works for me too. I used composer require nelmio/api-doc-bundle:3.6 to doing it.

@isaac410
Copy link

don't work to me with on versión 3.6, when it will be compatible with symfony 5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests