start Front module
This commit is contained in:
@@ -56,6 +56,7 @@
|
|||||||
<tag name="router.register" priority="0"/>
|
<tag name="router.register" priority="0"/>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<!--
|
||||||
<service id="router.front" class="%router.class%">
|
<service id="router.front" class="%router.class%">
|
||||||
<argument type="service" id="router.xmlLoader"/>
|
<argument type="service" id="router.xmlLoader"/>
|
||||||
<argument>front.xml</argument>
|
<argument>front.xml</argument>
|
||||||
@@ -66,6 +67,7 @@
|
|||||||
<argument type="service" id="request.context"/>
|
<argument type="service" id="request.context"/>
|
||||||
<tag name="router.register" priority="128"/>
|
<tag name="router.register" priority="128"/>
|
||||||
</service>
|
</service>
|
||||||
|
-->
|
||||||
|
|
||||||
<service id="router.rewrite" class="Thelia\Core\Routing\RewritingRouter">
|
<service id="router.rewrite" class="Thelia\Core\Routing\RewritingRouter">
|
||||||
<tag name="router.register" priority="255"/>
|
<tag name="router.register" priority="255"/>
|
||||||
|
|||||||
18
local/modules/Front/Config/config.xml
Normal file
18
local/modules/Front/Config/config.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?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="MyFormName" class="MyModule\Form\MySuperForm" />
|
||||||
|
-->
|
||||||
|
</forms>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<services>
|
||||||
|
|
||||||
|
</services>
|
||||||
|
-->
|
||||||
|
</config>
|
||||||
20
local/modules/Front/Config/module.xml
Normal file
20
local/modules/Front/Config/module.xml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module>
|
||||||
|
<fullnamespace>Front\Front</fullnamespace>
|
||||||
|
<descriptive locale="en_US">
|
||||||
|
<title>front integration</title>
|
||||||
|
<description></description>
|
||||||
|
</descriptive>
|
||||||
|
<descriptive locale="fr_FR">
|
||||||
|
<title>front office module</title>
|
||||||
|
<description></description>
|
||||||
|
</descriptive>
|
||||||
|
<version>0.1</version>
|
||||||
|
<author>
|
||||||
|
<name>Thelia team</name>
|
||||||
|
<email>info@thelia.net</email>
|
||||||
|
</author>
|
||||||
|
<type>classic</type>
|
||||||
|
<thelia>2.0.0</thelia>
|
||||||
|
<stability>dev</stability>
|
||||||
|
</module>
|
||||||
35
local/modules/Front/Front.php
Normal file
35
local/modules/Front/Front.php
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/*************************************************************************************/
|
||||||
|
/* */
|
||||||
|
/* Thelia */
|
||||||
|
/* */
|
||||||
|
/* Copyright (c) OpenStudio */
|
||||||
|
/* email : info@thelia.net */
|
||||||
|
/* web : http://www.thelia.net */
|
||||||
|
/* */
|
||||||
|
/* This program is free software; you can redistribute it and/or modify */
|
||||||
|
/* it under the terms of the GNU General Public License as published by */
|
||||||
|
/* the Free Software Foundation; either version 3 of the License */
|
||||||
|
/* */
|
||||||
|
/* This program is distributed in the hope that it will be useful, */
|
||||||
|
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||||
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||||
|
/* GNU General Public License for more details. */
|
||||||
|
/* */
|
||||||
|
/* You should have received a copy of the GNU General Public License */
|
||||||
|
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
/* */
|
||||||
|
/*************************************************************************************/
|
||||||
|
|
||||||
|
namespace Front;
|
||||||
|
|
||||||
|
use Thelia\Module\BaseModule;
|
||||||
|
|
||||||
|
class Front extends BaseModule
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* YOU HAVE TO IMPLEMENT HERE ABSTRACT METHODD FROM BaseModule Class
|
||||||
|
* Like install and destroy
|
||||||
|
*/
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user