Skip to content

Use the tag attribute for getting the modelClass and use the argument…#630

Merged
jordisala1991 merged 2 commits into
sonata-project:3.xfrom
fransweerts:3.x
Mar 22, 2022
Merged

Use the tag attribute for getting the modelClass and use the argument…#630
jordisala1991 merged 2 commits into
sonata-project:3.xfrom
fransweerts:3.x

Conversation

@fransweerts

@fransweerts fransweerts commented Mar 22, 2022

Copy link
Copy Markdown
Contributor

… only as fallback.

Because passing the code, the model class and the controller name as arguments has been deprecated in SonataAdmin 4.8.0.
Fixes #628

Subject

I am targeting this branch, because it fixes deprecation notices.

Closes #628.

Changelog

### Fixed
- Support of new admin declaration with `model_class` as attribute

… only as fallback.

Because passing the code, the model class and the controller name as arguments has been deprecated in SonataAdmin 4.8.0.
Fixes #628
Comment thread src/DependencyInjection/Compiler/AdminExtensionCompilerPass.php Outdated
- add foreach for looping the tags

@jordisala1991 jordisala1991 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should change the constraint to admin-bundle in the composer.json to atleast 4.8

https://github.com/sonata-project/SonataTranslationBundle/blob/3.x/composer.json#L24

@VincentLanglet

Copy link
Copy Markdown
Member

You should change the constraint to admin-bundle in the composer.json to atleast 4.8

https://github.com/sonata-project/SonataTranslationBundle/blob/3.x/composer.json#L24

Why ? There is a ?? check, so there is no need to drop lower versions.

@jordisala1991 jordisala1991 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You're right, there is no need to up the version constraint :)

@jordisala1991 jordisala1991 merged commit b11eff2 into sonata-project:3.x Mar 22, 2022
@jordisala1991

Copy link
Copy Markdown
Member

Thank you @fransweerts

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.

AdminExtensionCompilerPass uses deprecated SonataAdmin argument

3 participants