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 more caching related things within BlockContextManager #1039

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

dmaicher
Copy link
Contributor

@dmaicher dmaicher commented Apr 19, 2022

Subject

Deprecate $cacheBlocks argument on BlockContextManager::__construct.

I overlooked this in #1011.

Changelog

### Deprecated
- deprecated passing array `$cacheBlocks` as 3rd argument for `BlockContextManager::__construct`
- deprecated `BlockContextManagerInterface::CACHE_KEY`

@dmaicher dmaicher force-pushed the deprecate_cache branch 2 times, most recently from 22cc0ba to e1c769e Compare April 19, 2022 18:37
@dmaicher dmaicher marked this pull request as ready for review April 19, 2022 18:38
@dmaicher dmaicher requested a review from a team April 19, 2022 18:39
src/Resources/config/core.php Show resolved Hide resolved
src/Block/BlockContextManager.php Show resolved Hide resolved
src/Block/BlockContextManager.php Show resolved Hide resolved
tests/Block/BlockContextManagerTest.php Show resolved Hide resolved
}

// NEXT_MAJOR: remove
if (null !== $logger) {
Copy link
Member

Choose a reason for hiding this comment

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

Just a comment, maybe we could check with func_num_args in these kind of deprecations to avoid also passing null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah will keep it in mind for next time 👍

@dmaicher dmaicher merged commit c97c4db into sonata-project:4.x Apr 21, 2022
@dmaicher dmaicher deleted the deprecate_cache branch April 21, 2022 14:32
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