This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace Esun\Review\Block\Product;
use Magento\Customer\Model\Session as CustomerSession;
use Magento\Framework\Registry;
use Magento\Framework\View\Element\Template\Context;
use Magento\Review\Model\ResourceModel\Review\CollectionFactory;
class Review extends \Magento\Review\Block\Product\Review
{
public function __construct(
Context $context,
Registry $registry,
CollectionFactory $collectionFactory,
private readonly CustomerSession $customerSession,
array $data = []
) {
parent::__construct($context, $registry, $collectionFactory, $data);
}
public function canShowReviewForm(): bool
{
return false;
}
}