28 lines
727 B
PHP
28 lines
727 B
PHP
<?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;
|
|
}
|
|
}
|