title | issue |
---|---|
Add `ResetInterface` to stateful services. |
NEXT-20253 |
- Added
ResetInterface
to all services having internal state, that needs to be reset between requests, and tagged them withkernel.reset
tag. - Deprecated
\Shopware\Core\Framework\Adapter\Twig\EntityTemplateLoader::clearInternalCache()
, usereset()
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.
- Added
ResetInterface
to\Shopware\Storefront\Theme\StorefrontPluginRegistry
and tagged it with thekernel.reset
tag.
We removed \Shopware\Core\Framework\Adapter\Twig\EntityTemplateLoader::clearInternalCache()
, use reset()
instead.