获取Controller Magento 2中的当前产品信息?

I want to get the current product information in a controller.

I created a function in block, and called that function in my phtml file.

How can I accomplish this task?