cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
466 stars 88 forks source link

Any chance of using a different version of Symfony YAML? #35

Closed keisetsu closed 4 years ago

keisetsu commented 5 years ago

My project uses Symfony 3.4, and we're not likely to update to 4 any time soon. Do you need features from 4.0?

Ideally you could use a non-symfony library, but I don't know what the prospects are for that.

yya commented 5 years ago

Same issue for me. Is there any chance to add support for symfony/yaml >= 3.0 as well? Thnx

cebe commented 4 years ago

As far as I remember the interface changed in 4.0, so I pinned the version to make sure it works, will look into that.

Also there is the option in using another library, but it seems the symfony one is the best option available right now (#21).

cebe commented 4 years ago

https://github.com/symfony/symfony/issues/27965#issuecomment-535043620

cebe commented 4 years ago

Updated composer.json, with the release of version 1.3 (probably going to happen tomorrow) you should be able to use this lib with symfony 3 and symfony 4.