```
"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"
}
See #1564
There is still work todo, some help would be welcome :)
See #1564
There is still work todo, some help would be welcome :)
What can we do to help? :)
@fma-technologies On the bundle itself nothing, bug FOSRestBundle is not compatible Sf5 yet
@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?
@ssaki I am not allowed to do if you look at my status, I am only a "Contributor"
Please see #1564 I added information
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 https://github.com/nelmio/NelmioApiDocBundle/pull/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
https://github.com/phingofficial/phing/issues/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.
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
When will a new version be released?
I hope soon :)
me to :))
Any updates? I really want to upgrade my project to Symfony5 but this is a showstopper for it.
@ cyanid I'm using the dev-master and it's working for now for me
When will a new (stable) version be released for Symfony 5.0?
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.
Release ^3.6 works for me! Thanks a lot.
Downgrade to 3.6 works for me too. I used composer require nelmio/api-doc-bundle:3.6 to doing it.
don't work to me with on versi贸n 3.6, when it will be compatible with symfony 5?
Most helpful comment
When will a new (stable) version be released for Symfony 5.0?