I am creating a custom blog, in which I use the \Magento\Framework\Registry
and it is deprecated.
I searched for solution but I could only find the way to get the data without registry.
Is there's any way to set data without registry?
deprecatedmagento2.3.3registry
I am creating a custom blog, in which I use the \Magento\Framework\Registry
and it is deprecated.
I searched for solution but I could only find the way to get the data without registry.
Is there's any way to set data without registry?
Best Answer
I suggest you to read this article with discussion in the comments(!) -
https://www.atwix.com/magento-2/alternatives-for-deprecated-registry-class-magento-2-3/
Shortly: don't use session, use own class for registry.
As example: https://github.com/Vinai/module-current-product-example