2

I want to use Registry class (vendor/magento/framework/Registry.php) But above file mentioned something like this

It's usage should be avoid. Use service classes or data providers instead.

Can you please anyone provide the best method to do this ?

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.