Skip to content

How to get the current product details in Observer without registey

How to get the current product in Observer instead of this "$product = $this->_registry->registry("current_product");"
I need the code for without registry in the observer.