init
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user