init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?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\Framework\App\FrontControllerInterface">
|
||||
<plugin name="esun3d_language_url_front_controller"
|
||||
type="Esun3d\LanguageUrlStoreResolver\Plugin\LanguageUrlFrontControllerPlugin"
|
||||
sortOrder="5"/>
|
||||
</type>
|
||||
<type name="Magento\Framework\Url">
|
||||
<plugin name="esun3d_language_url_url_output"
|
||||
type="Esun3d\LanguageUrlStoreResolver\Plugin\UrlPlugin"
|
||||
sortOrder="100"/>
|
||||
</type>
|
||||
</config>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
<event name="controller_action_predispatch">
|
||||
<observer name="vendor_language_url_add_http_context"
|
||||
instance="Esun3d\LanguageUrlStoreResolver\Observer\AddHttpContextObserver"/>
|
||||
</event>
|
||||
<event name="controller_front_send_response_before">
|
||||
<observer name="esun3d_language_url_rewrite_page_links"
|
||||
instance="Esun3d\LanguageUrlStoreResolver\Observer\RewritePageLinksObserver"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
|
||||
<router id="standard">
|
||||
<route id="switch" frontName="switch">
|
||||
<module name="Esun3d_LanguageUrlStoreResolver" />
|
||||
</route>
|
||||
</router>
|
||||
</config>
|
||||
Reference in New Issue
Block a user