init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
<type name="Magento\Review\Block\Product\ReviewRenderer">
|
||||
<plugin name="esun_review_renderer"
|
||||
type="Esun\Review\Plugin\ReviewRendererPlugin"/>
|
||||
</type>
|
||||
<type name="Magento\Review\Model\Review">
|
||||
<plugin name="esun_review_image_save"
|
||||
type="Esun\Review\Plugin\Review\SaveImagesPlugin"/>
|
||||
</type>
|
||||
<type name="Magento\Review\Controller\Product\Post">
|
||||
<plugin name="esun_review_require_customer"
|
||||
type="Esun\Review\Plugin\Review\PostGuestGuardPlugin"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="esun_review" frontName="esun_review">
|
||||
<module name="Esun_Review"/>
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Reference in New Issue
Block a user