rename plugins to modules
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
"": "local/plugins/",
|
"": "local/modules/",
|
||||||
"Thelia" : "core/lib/"
|
"Thelia" : "core/lib/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
22
composer.lock
generated
22
composer.lock
generated
@@ -3,7 +3,7 @@
|
|||||||
"This file locks the dependencies of your project to a known state",
|
"This file locks the dependencies of your project to a known state",
|
||||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
|
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
|
||||||
],
|
],
|
||||||
"hash": "01f45cf9b2249fce35b127051f36f68d",
|
"hash": "fed0f90bca039760e3021c1febd59371",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "ezyang/htmlpurifier",
|
"name": "ezyang/htmlpurifier",
|
||||||
@@ -55,12 +55,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ircmaxell/password_compat.git",
|
"url": "https://github.com/ircmaxell/password_compat.git",
|
||||||
"reference": "733c06c599bfeb511f54253ddb127701bce0917d"
|
"reference": "6925da603b31bfff9488480c0a9db48a0feeadf1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/733c06c599bfeb511f54253ddb127701bce0917d",
|
"url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/6925da603b31bfff9488480c0a9db48a0feeadf1",
|
||||||
"reference": "733c06c599bfeb511f54253ddb127701bce0917d",
|
"reference": "6925da603b31bfff9488480c0a9db48a0feeadf1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Anthony Ferrara",
|
"name": "Anthony Ferrara",
|
||||||
"email": "ircmaxell@php.net",
|
"email": "ircmaxell@ircmaxell.com",
|
||||||
"homepage": "http://blog.ircmaxell.com"
|
"homepage": "http://blog.ircmaxell.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
"hashing",
|
"hashing",
|
||||||
"password"
|
"password"
|
||||||
],
|
],
|
||||||
"time": "2013-02-13 16:58:34"
|
"time": "2013-05-10 11:19:13"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phing/phing",
|
"name": "phing/phing",
|
||||||
@@ -772,12 +772,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/fzaninotto/Faker.git",
|
"url": "https://github.com/fzaninotto/Faker.git",
|
||||||
"reference": "a9c1c8b76abe4622b285dcd7aa342cab9dfb6de6"
|
"reference": "c2b06f9741106c35eb7e21dda4c72a54415277dd"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/a9c1c8b76abe4622b285dcd7aa342cab9dfb6de6",
|
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/c2b06f9741106c35eb7e21dda4c72a54415277dd",
|
||||||
"reference": "a9c1c8b76abe4622b285dcd7aa342cab9dfb6de6",
|
"reference": "c2b06f9741106c35eb7e21dda4c72a54415277dd",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -809,7 +809,7 @@
|
|||||||
"faker",
|
"faker",
|
||||||
"fixtures"
|
"fixtures"
|
||||||
],
|
],
|
||||||
"time": "2013-04-23 12:35:55"
|
"time": "2013-05-13 07:57:43"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"aliases": [
|
"aliases": [
|
||||||
@@ -822,7 +822,7 @@
|
|||||||
"fzaninotto/faker": 20
|
"fzaninotto/faker": 20
|
||||||
},
|
},
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": ">=5.3.7"
|
"php": ">=5.4"
|
||||||
},
|
},
|
||||||
"platform-dev": [
|
"platform-dev": [
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
define('THELIA_ROOT', realpath(__DIR__ .'/../') . "/");
|
define('THELIA_ROOT', realpath(__DIR__ .'/../') . "/");
|
||||||
define('THELIA_CONF_DIR', THELIA_ROOT . '/local/config');
|
define('THELIA_CONF_DIR', THELIA_ROOT . '/local/config');
|
||||||
define('THELIA_PLUGIN_DIR', THELIA_ROOT . '/local/plugins');
|
define('THELIA_MODULE_DIR', THELIA_ROOT . '/local/modules');
|
||||||
define('THELIA_TEMPLATE_DIR', THELIA_ROOT . 'templates/');
|
define('THELIA_TEMPLATE_DIR', THELIA_ROOT . 'templates/');
|
||||||
$loader = require __DIR__ . "/vendor/autoload.php";
|
$loader = require __DIR__ . "/vendor/autoload.php";
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ class Thelia extends Kernel
|
|||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$loader = new XmlFileLoader($container, new FileLocator(THELIA_PLUGIN_DIR . "/" . ucfirst($module->getCode()) . "/Config"));
|
$loader = new XmlFileLoader($container, new FileLocator(THELIA_MODULE_DIR . "/" . ucfirst($module->getCode()) . "/Config"));
|
||||||
$loader->load("config.xml");
|
$loader->load("config.xml");
|
||||||
} catch(\InvalidArgumentException $e) {
|
} catch(\InvalidArgumentException $e) {
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>TODO write content<br />
|
<div>TODO write content<br />
|
||||||
<THELIA_cat type="category">
|
<THELIA_cat type="category">
|
||||||
#__COUNT__ - #TITLE <br />
|
#__COUNT__ - #TITLE <br />
|
||||||
nb child : #NB_CHILD <br /><br />
|
nb child : #NB_CHILD <br /><br />
|
||||||
</THELIA_cat>
|
</THELIA_cat>
|
||||||
|
|||||||
Reference in New Issue
Block a user