Initial commit

This commit is contained in:
2020-01-27 08:56:08 +01:00
commit b7525048d6
27129 changed files with 3409855 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="config.xml" server="51.254.220.106//web/" local="131379694261875000" remote="131383879200000000" />
<file name="module.xml" server="51.254.220.106//web/" local="131379708167343750" remote="131383879200000000" />
<file name="routing.xml" server="51.254.220.106//web/" local="131379660585937500" remote="131383879200000000" />
<file name="schema.xml" server="51.254.220.106//web/" local="131379675098437500" remote="131383879200000000" />
<file name="sqldb.map" server="51.254.220.106//web/" local="131351946000000000" remote="131383879200000000" />
<file name="thelia.sql" server="51.254.220.106//web/" local="131383877071562500" remote="131383879200000000" />
<file name="config.xml" server="37.187.178.154//web/" local="131351946000000000" remote="131378968800000000" />
<file name="module.xml" server="37.187.178.154//web/" local="131351946000000000" remote="131378968800000000" />
<file name="routing.xml" server="37.187.178.154//web/" local="131351946000000000" remote="131378968800000000" />
<file name="schema.xml" server="37.187.178.154//web/" local="131351946000000000" remote="131378968800000000" />
<file name="sqldb.map" server="37.187.178.154//web/" local="131351946000000000" remote="131378968800000000" />
<file name="thelia.sql" server="37.187.178.154//web/" local="131351946000000000" remote="131378968800000000" />
</dwsync>

View File

@@ -0,0 +1,42 @@
<?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">
<loops>
<loop name="withdrawal_in_store" class="WithdrawalInStore\Loop\WithdrawalInStore" />
<loop name="order.notsent.withdrawalinstore" class="WithdrawalInStore\Loop\NotSendOrders" />
</loops>
<forms>
<form name="WithdrawalInStore.admin.rule.creation" class="WithdrawalInStore\Form\WithdrawalInStoreRuleCreationForm"/>
<form name="WithdrawalInStore.admin.rule.modification" class="WithdrawalInStore\Form\WithdrawalInStoreRuleModificationForm"/>
<form name="WithdrawalInStore.export.inet" class="WithdrawalInStore\Form\ExportOrder" />
</forms>
<commands>
<!--
<command class="MyModule\Command\MySuperCommand" />
-->
</commands>
<templateDirectives>
<!-- Sample definition
<templateDirectives class="MyModule\Directive\MyTemplateDirective" name="my_filter"/>
-->
</templateDirectives>
<services>
<service id="WithdrawalInStore.action" class="WithdrawalInStore\Action\WithdrawalInStoreAction">
<argument type="service" id="service_container"/>
<tag name="kernel.event_subscriber"/>
</service>
<service id="WithdrawalInStore.mail" class="WithdrawalInStore\EventListener\SendConfirmationEmail" scope="request">
<argument type="service" id="thelia.parser" />
<argument type="service" id="mailer"/>
<tag name="kernel.event_subscriber"/>
</service>
</services>
</config>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<module>
<fullnamespace>WithdrawalInStore\WithdrawalInStore</fullnamespace>
<descriptive locale="en_US">
<title>Withdrawal In Store at Bénodet</title>
</descriptive>
<descriptive locale="fr_FR">
<title>Retrait en magasin à Bénodet</title>
</descriptive>
<version>1.0.0</version>
<author>
<name>Frederic Faou</name>
<email>fredodefrance@gmail.com</email>
</author>
<type>delivery</type>
<thelia>2.1.0</thelia>
<stability>prod</stability>
</module>

View File

@@ -0,0 +1,28 @@
<?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.WithdrawalInStore.rule.create" path="/admin/module/WithdrawalInStore/create">
<default key="_controller">WithdrawalInStore\Controller\Admin\WithdrawalInStoreController::createRuleAction</default>
</route>
<route id="admin.WithdrawalInStore.rule.delete" path="/admin/module/WithdrawalInStore/delete">
<default key="_controller">WithdrawalInStore\Controller\Admin\WithdrawalInStoreController::deleteAction</default>
</route>
<route id="admin.WithdrawalInStore.rule.edit" path="/admin/module/WithdrawalInStore/update/{ruleId}">
<default key="_controller">WithdrawalInStore\Controller\Admin\WithdrawalInStoreController::updateAction</default>
<requirement key="ruleId">\d+</requirement>
</route>
<route id="admin.WithdrawalInStore.rule.save" path="/admin/module/WithdrawalInStore/save">
<default key="_controller">WithdrawalInStore\Controller\Admin\WithdrawalInStoreController::processUpdateAction</default>
</route>
<route id="admin.WithdrawalInStore.export" path="/admin/module/WithdrawalInStore/export" methods="post">
<default key="_controller">WithdrawalInStore\Controller\Admin\Export::export</default>
</route>
</routes>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<database defaultIdMethod="native" name="thelia" >
<!--
See propel documentation on http://propelorm.org for all information about schema file
-->
<table name="WITHDRAWAL_IN_STORE" namespace="WithdrawalInStore\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="area_id" required="true" type="INTEGER" />
<column name="amount" required="true" type="INTEGER" />
<foreign-key foreignTable="area" name="fk_area_associated_WithdrawalInStore_area_id">
<reference foreign="id" local="area_id" />
</foreign-key>
</table>
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
</database>

View File

@@ -0,0 +1,2 @@
# Sqlfile -> Database map
thelia.sql=thelia

View File

@@ -0,0 +1,25 @@
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- WITHDRAWAL_IN_STORE
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `withdrawal_in_store`;
CREATE TABLE `withdrawal_in_store`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`area_id` INTEGER NOT NULL,
`amount` INTEGER NOT NULL,
PRIMARY KEY (`id`),
INDEX `FI_area_associated_WithdrawalInStore_area_id` (`area_id`),
CONSTRAINT `fk_area_associated_WithdrawalInStore_area_id`
FOREIGN KEY (`area_id`)
REFERENCES `area` (`id`)
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;