Skip to content

Upgrade Symfony vendor to ^6 #65

New issue

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

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

Already on GitHub? # to your account

Merged

Conversation

jerowork
Copy link
Contributor

@jerowork jerowork commented Sep 29, 2022

Description

This package still needs to be updated to Symfony ^6.

The existing PR #62 (which also aims to SF6) is not complete. It will fail tests due to a missing fix.
Since Validator ^6 the Doctrine annotation reader needs to be set specifically. @see https://github.com/symfony/validator/blob/6.1/CHANGELOG.md#60

Failing thecodingmachine/graphqlite-bundle:^5.4:

The comment @oojacoboo added to #62 is incorrect. Installing thecodingmachine/graphqlite-bundle to the latest version 5.4 will fail when using SF6, due to the incompatibility of this package thecodingmachine/graphqlite-symfony-validator-bridge. The graphqlite bundle 5.4 is thereby broken, as said in thecodingmachine/graphqlite-bundle#137

Schermafbeelding 2022-09-29 om 08 37 29

Therefore, hereby a fixing PR to upgrade this bridge to SF6, so that the bundle can be fixed as well.

Changes

  • Upgraded alll Symfony packages to ^6.
  • Fixed all breaking changes due to the upgrade to 6

Including one fix: Since Validator ^6 the Doctrine annotation reader
needs to be set specifically.

@see https://github.com/symfony/validator/blob/6.1/CHANGELOG.md#60
@aszenz
Copy link
Contributor

aszenz commented Dec 15, 2022

@jerowork Is there anything preventing a merge of this, is it required for thecodingmachine/graphqlite-bundle#142

@jerowork
Copy link
Contributor Author

@aszenz I'm waiting for reviews. PR is ready for sure.

@aszenz
Copy link
Contributor

aszenz commented Dec 16, 2022

Maybe @oojacoboo can take a look at this

@oojacoboo
Copy link
Collaborator

This repo needs a maintainer. I'm busy enough with graphqlite and everything else I have on my plate. We don't use Symfony framework or Laravel or any of the other plugins that support GraphQLite integrations. So, it's more difficult for me to review these.

For instance, why was the AnnotationReader added? Is that because it's not loaded by default now? This repo needs to be aware that Doctrine annotations will be deprecated soon as well. What if someone wants to pass in a custom annotation reader that supports any of their custom Doctrine annotations?

@jroszkiewicz
Copy link

@oojacoboo @jerowork bump
btw @oojacoboo he didnt add AnnotationReader, but only change the way of configuration from existed code.
Maybe a good option is add some deprecations warnings when someone is still using annotations in project

@oojacoboo oojacoboo merged commit 1a7d828 into thecodingmachine:master Dec 29, 2022
@jroszkiewicz
Copy link

@oojacoboo
any chance to make a new tag/release with this change?

thecodingmachine/graphqlite-bundle#142 is blocked until new version of this package will released

@oojacoboo
Copy link
Collaborator

@jroszkiewicz Added v5.0.1

@jerowork jerowork deleted the jerowork/upgrade-symfony-to-6 branch February 23, 2023 15:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants