In Magento2, if we want the current category detail then we can retrieve it from Registry as below:
$currentCategory = $this->_registry->registry('current_category');
For Getting current product detail, then we can retrieve it from Registry as below:
$currentProduct = $this->_registry->registry('product');
OR
$currentProduct = $this->_registry->registry('current_product');
So which one we should use or which one that Magento recommends for getting Current Product? why?
Thanks...