Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 1.12 KB

2022-03-09-added-reset-interface-to-stateful-services.md

File metadata and controls

16 lines (15 loc) · 1.12 KB
title issue
Add `ResetInterface` to stateful services.
NEXT-20253

Core

  • Added ResetInterface to all services having internal state, that needs to be reset between requests, and tagged them with kernel.reset tag.
  • Deprecated \Shopware\Core\Framework\Adapter\Twig\EntityTemplateLoader::clearInternalCache(), use reset() instead.
  • Deprecated the TestBehaviourTraits \Shopware\Core\Content\Test\ImportExport\SerializerCacheTestBehaviour, \Shopware\Core\Framework\Test\App\StorefrontPluginRegistryTestBehaviour, \Shopware\Core\Framework\Test\TestCaseBase\RuleTestBehaviour and \Shopware\Core\Framework\Test\TestCaseBase\SystemConfigTestBehaviour as they are not needed anymore, if you use them in your unit test remove the usage.

Storefront

  • Added ResetInterface to \Shopware\Storefront\Theme\StorefrontPluginRegistry and tagged it with the kernel.reset tag.

Next Major Version Changes

Removal of \Shopware\Core\Framework\Adapter\Twig\EntityTemplateLoader::clearInternalCache()

We removed \Shopware\Core\Framework\Adapter\Twig\EntityTemplateLoader::clearInternalCache(), use reset() instead.