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

Make admin dependency optional for block rendering #554

Merged
merged 1 commit into from
Aug 22, 2020

Conversation

core23
Copy link
Member

@core23 core23 commented Aug 21, 2020

Subject

The admin dependency is optional for this bundle, however the blocks still depend on an admin.

This PR makes the admin dependency optional, if you just want to use block rendering (BlockInterface::execute) without editing it.

I am targeting this branch, because this is BC.

Changelog

### Fixed
- Make admin dependency optional for block rendering

@core23 core23 added the patch label Aug 21, 2020
@core23 core23 requested a review from a team August 21, 2020 20:12
Copy link
Member

@jordisala1991 jordisala1991 left a comment

Choose a reason for hiding this comment

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

No changes on the xml config required? It would be nice to test this behavior too but not sure how hard it is to do it

@core23
Copy link
Member Author

core23 commented Aug 22, 2020

No changes on the xml config required?

No, they are abstract classes that are only used on our other projects (e.g. NewsBundle)

@VincentLanglet VincentLanglet merged commit 75d0743 into sonata-project:3.x Aug 22, 2020
@VincentLanglet
Copy link
Member

Thanks

@core23 core23 deleted the optional-admin-in-block branch August 22, 2020 19:30
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