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 a ContentManagerInterface #104

Merged
merged 1 commit into from
Jul 15, 2021
Merged

Conversation

ogizanagi
Copy link
Member

@ogizanagi ogizanagi commented Jul 9, 2021

first need: allowing decoration of the whole content manager

Note: For existing apps, in order for decoration to work as expected, any ContentManager typehints and DI injection must be replaced to use the ContentManagerInterface, otherwise, your custom code might not be called in every context.


⚠️ BC Break:

The ContentManagerAwareInterface now uses ContentManagerInterface as its typehints instead of ContentManager. That should not be an issue if you use the ContentManagerAwareTrait though.

first need: allowing decoration of the whole content manager
* Set the actual content manager instance to inject in processors.
* Useful whenever this content manager is decorated in order for the processor to use the decorating one.
*/
public function setContentManager(ContentManagerInterface $contentManager): void
Copy link
Member Author

Choose a reason for hiding this comment

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

A bit "hacky" though

@ogizanagi ogizanagi merged commit 53696ed into master Jul 15, 2021
@ogizanagi ogizanagi deleted the content_manager_interface branch July 15, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants