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

Deprecate using shortcut notation for user_model in favor of FQCN #6413

Merged
merged 2 commits into from
Sep 26, 2020

Conversation

franmomu
Copy link
Member

@franmomu franmomu commented Sep 24, 2020

Subject

Ref: #6407 (comment)

If we use FQCN notation for the user_model option in GenerateObjectAclCommand, there is no need for the $registry dependency.

I am targeting this branch, because these changes are BC.

Changelog

### Deprecated
- Deprecate using shortcut notation for user_model in favor of FQCN in `GenerateObjectAclCommand`

To do

  • Add an upgrade note.

@franmomu franmomu force-pushed the deprecate_registry_in_command branch from 60942b7 to 2eaee1e Compare September 24, 2020 21:20
src/Command/GenerateObjectAclCommand.php Outdated Show resolved Hide resolved
@franmomu franmomu force-pushed the deprecate_registry_in_command branch from 2eaee1e to e6718a2 Compare September 24, 2020 23:50
phansys
phansys previously approved these changes Sep 25, 2020
Instead of using shortcut notation for referring a user entity, now
we ask for the FQCN which allows us to not use a ManagerRegistry
dependency.
@phansys phansys merged commit a3f119d into sonata-project:3.x Sep 26, 2020
@phansys
Copy link
Member

phansys commented Sep 26, 2020

Thank you @franmomu!

@franmomu franmomu deleted the deprecate_registry_in_command branch September 26, 2020 13:19
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.

4 participants