title: How to get current product in block in Magento 2 without Register and Object Manager?
body: <p>How to avoid using depricated Registry and prohibited Object Maneger to get current product? I have this code now:</p>
  
  <pre><code>        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
          $product = $objectManager-&gt;get('Magento\Framework\Registry')-&gt;registry('current_product');
          $product = $objectManager-&gt;create('Name\ModuleName\Model\Folder\Product')-&gt;load($product-&gt;getId());
  </code></pre>