Inital commit
This commit is contained in:
27
local/modules/TheliaMigrateCountry/Config/config.xml
Normal file
27
local/modules/TheliaMigrateCountry/Config/config.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<forms>
|
||||
<form name="thelia.admin.country.state.migration" class="TheliaMigrateCountry\Form\CountryStateMigrationForm"/>
|
||||
</forms>
|
||||
|
||||
<services>
|
||||
<service id="theliamigratecountry.action" class="TheliaMigrateCountry\EventListeners\MigrateCountryListener" >
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
</service>
|
||||
|
||||
<service id="thelia.form.type.country.state.migrate" class="TheliaMigrateCountry\Form\Type\CountryStateMigrationType">
|
||||
<tag name="thelia.form.type" />
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<hooks>
|
||||
<hook id="theliamigratecountry.hook">
|
||||
<tag name="hook.event_listener" event="configuration.shipping-bottom" type="back" templates="configuration-shipping-bottom.html" />
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
</config>
|
||||
26
local/modules/TheliaMigrateCountry/Config/module.xml
Normal file
26
local/modules/TheliaMigrateCountry/Config/module.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
|
||||
<fullnamespace>TheliaMigrateCountry\TheliaMigrateCountry</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Countries/states migration tool</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Utilitaire de migration des pays/états</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>2.3.5</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Julien Chanséaume</name>
|
||||
<email>julien@thelia.net</email>
|
||||
</author>
|
||||
</authors>
|
||||
<type>classic</type>
|
||||
<thelia>2.3.0</thelia>
|
||||
<stability>alpha</stability>
|
||||
</module>
|
||||
15
local/modules/TheliaMigrateCountry/Config/routing.xml
Normal file
15
local/modules/TheliaMigrateCountry/Config/routing.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="admin.configuration.countries.migrate" path="/admin/configuration/countries/migrate">
|
||||
<default key="_controller">TheliaMigrateCountry\Controller\MigrateController::migrateSystemAction</default>
|
||||
</route>
|
||||
|
||||
<route id="admin.configuration.countries.do-migrate" path="/admin/configuration/countries/do-migrate" methods="post">
|
||||
<default key="_controller">TheliaMigrateCountry\Controller\MigrateController::doMigrateSystemAction</default>
|
||||
</route>
|
||||
|
||||
</routes>
|
||||
Reference in New Issue
Block a user