Closed mehrdad-shokri closed 4 years ago
There's a PR for this https://github.com/dingo/api/pull/1715
Dingo currently doesn't support version 7, stay tuned, will be shortly done.
You can test now, please see https://github.com/dingo/api/issues/1721
@specialtactics Can install v3.0.0-rc2 but I'm using spatie/laravel-fractal and it requires https://github.com/spatie/fractalistic which uses "league/fractal": "^0.19.0"
This package requires ^0.17
composer require dingo/api "^3.0.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for league/fractal (locked at 0.19.2) -> satisfiable by league/fractal[0.19.2].
- dingo/api v3.0.0-rc1 requires league/fractal ^0.17 -> satisfiable by league/fractal[0.17.0].
- dingo/api v3.0.0-rc2 requires league/fractal ^0.17 -> satisfiable by league/fractal[0.17.0].
- Conclusion: don't install league/fractal 0.17.0
- Installation request for dingo/api ^3.0.0 -> satisfiable by dingo/api[v3.0.0-rc1, v3.0.0-rc2].
Installation failed, reverting ./composer.json to its original content.
@bbashy Actually, I will update that requirement
Completely unrelated? Your package installs an old version of a package. How do I get around that?
@bbashy Yes you're right, because fractal is in v0. for major, it doesn't have like it does for non-dev versions, it will need to be updated.
@bbashy Updated & tagged
Thanks, I got past that one now. New issue;
composer require dingo/api "3.0.0-rc3" -vv
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Dependency resolution completed in 0.083 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
- dingo/api v3.0.0-rc3 requires dingo/blueprint ^0.4 -> satisfiable by dingo/blueprint[v0.4.0].
- Conclusion: remove phpdocumentor/reflection-common 2.0.0
- Conclusion: don't install phpdocumentor/reflection-common 2.0.0
- phpdocumentor/reflection-docblock 3.1.0 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.1.1 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.2.0 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.2.1 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.2.2 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.2.3 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.3.0 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 3.3.2 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 4.1.0 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 4.1.1 requires phpdocumentor/reflection-common ^1.0@dev -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 4.2.0 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 4.3.0 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- phpdocumentor/reflection-docblock 4.3.1 requires phpdocumentor/reflection-common ^1.0.0 -> satisfiable by phpdocumentor/reflection-common[1.0, 1.0.1].
- Can only install one of: phpdocumentor/reflection-common[1.0, 2.0.0].
- Can only install one of: phpdocumentor/reflection-common[1.0.1, 2.0.0].
- Installation request for phpdocumentor/reflection-common (locked at 2.0.0) -> satisfiable by phpdocumentor/reflection-common[2.0.0].
- Installation request for dingo/api 3.0.0-rc3 -> satisfiable by dingo/api[v3.0.0-rc3].
- Conclusion: don't install phpdocumentor/reflection-docblock 5.1.0|install phpdocumentor/reflection-docblock 3.1.0|install phpdocumentor/reflection-docblock 3.1.1|install phpdocumentor/reflection-docblock 3.2.0|install phpdocumentor/reflection-docblock 3.2.1|install phpdocumentor/reflection-docblock 3.2.2|install phpdocumentor/reflection-docblock 3.2.3|install phpdocumentor/reflection-docblock 3.3.0|install phpdocumentor/reflection-docblock 3.3.2|install phpdocumentor/reflection-docblock 4.1.0|install phpdocumentor/reflection-docblock 4.1.1|install phpdocumentor/reflection-docblock 4.2.0|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
- Conclusion: remove phpdocumentor/reflection-docblock 5.1.0|install phpdocumentor/reflection-docblock 3.1.0|install phpdocumentor/reflection-docblock 3.1.1|install phpdocumentor/reflection-docblock 3.2.0|install phpdocumentor/reflection-docblock 3.2.1|install phpdocumentor/reflection-docblock 3.2.2|install phpdocumentor/reflection-docblock 3.2.3|install phpdocumentor/reflection-docblock 3.3.0|install phpdocumentor/reflection-docblock 3.3.2|install phpdocumentor/reflection-docblock 4.1.0|install phpdocumentor/reflection-docblock 4.1.1|install phpdocumentor/reflection-docblock 4.2.0|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
- dingo/blueprint v0.4.0 requires phpdocumentor/reflection-docblock ^3.1|^4.1 -> satisfiable by phpdocumentor/reflection-docblock[3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.3.0, 3.3.2, 4.1.0, 4.1.1, 4.2.0, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4].
- Can only install one of: phpdocumentor/reflection-docblock[4.3.2, 5.1.0].
- Can only install one of: phpdocumentor/reflection-docblock[4.3.3, 5.1.0].
- Can only install one of: phpdocumentor/reflection-docblock[4.3.4, 5.1.0].
- Installation request for phpdocumentor/reflection-docblock (locked at 5.1.0) -> satisfiable by phpdocumentor/reflection-docblock[5.1.0].
Installation failed, reverting ./composer.json to its original content.
Don't really understand that well enough to know what the solution is.
@bbashy You can need to update all packages involved, ie.
composer update dingo/api phpdocumentor/reflection-docblock
Your version of reflection dockblock is locked at 5.1, which is more up to date than what blueprint supports. The above could potentially work, alternatively I could allow version 5 in dingo blueprint, but I'm not sure what repercussions that would have. I will try anyway since I think doc generation is not overly working at the moment.
@bbashy Try again plz
Thanks, able to install it now;
composer require dingo/api "^3.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing doctrine/annotations (v1.8.0): Downloading (100%)
- Installing dingo/blueprint (v0.4.1): Downloading (100%)
- Installing dingo/api (v3.0.0-rc3): Downloading (100%)
dingo/api suggests installing tymon/jwt-auth (Protect your API with JSON Web Tokens.)
Writing lock file
Actual Behaviour
Apparently laravel is using
Illuminate/routin
version 7 and dingo requires version 5 || 6Expected Behaviour
Install the thing
Steps to Reproduce
composer require dingo/api
Possible Solutions
udate
Illuminate/rouing
to version 7!