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

Add Symfony 6 support #778

Merged
merged 3 commits into from Nov 26, 2021

Conversation

jordisala1991
Copy link
Member

@jordisala1991 jordisala1991 commented Nov 26, 2021

Subject

I am targeting this branch, because this cannot be done on lower branch.

Part of: sonata-project/dev-kit#1675
Dev-kit PR: sonata-project/dev-kit#1786

Changelog

### Added
- Added support for Symfony 6.

@jordisala1991
Copy link
Member Author

jordisala1991 commented Nov 26, 2021

Requires: sonata-project/SonataDoctrineMongoDBAdminBundle#699

Edit: Done, it is merged.

@jordisala1991 jordisala1991 marked this pull request as draft November 26, 2021 08:00
@jordisala1991 jordisala1991 marked this pull request as ready for review November 26, 2021 08:40
@jordisala1991
Copy link
Member Author

Some code need to be fixed.

@jordisala1991 jordisala1991 requested a review from a team November 26, 2021 17:34
@jordisala1991
Copy link
Member Author

Maybe after this one we can do the 4.0.0 final release? @core23

@@ -74,14 +74,14 @@ public function listAction(Request $request): Response

public function treeAction(Request $request): Response
{
$categoryManager = $this->get('sonata.classification.manager.category');
$categoryManager = $this->container->get('sonata.classification.manager.category');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a test that covers this action?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont know, but the get method was deprecated on 5.4, and removed on 6.0

Edit: I would say probably because test were failing without this change

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not related to this PR, but we had some problem with some admin actions.

I'll try to add some basic tests to cover this this before releasing the stable release.

@jordisala1991 jordisala1991 merged commit 2a9582f into sonata-project:4.x Nov 26, 2021
@jordisala1991 jordisala1991 deleted the feature/symfony-6 branch November 26, 2021 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants