Debut du travail sur le B.O.

This commit is contained in:
franck
2013-06-07 15:31:05 +02:00
parent 9a4dfac51f
commit f9068878c7
7 changed files with 837 additions and 56 deletions

View File

@@ -44,7 +44,7 @@
<service id="router.admin" class="%router.class%">
<argument type="service" id="router.admin.xmlLoader"/>
<argument>routing.xml</argument>
<argument>admin.xml</argument>
<argument type="collection">
<argument key="cache_dir">%kernel.cache_dir%</argument>
<argument key="debug">%kernel.debug%</argument>

View File

@@ -1,10 +0,0 @@
<?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="blog" path="/">
<default key="_controller">Thelia\Controller\Admin</default>
</route>
</routes>

View File

@@ -1,8 +0,0 @@
<?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">
<import resource="admin_routing.xml" prefix="/admin" />
</routes>

View File

@@ -58,7 +58,7 @@ class Thelia extends Kernel
{
protected $tpexConfig;
public function init()
{
parent::init();
@@ -67,7 +67,7 @@ class Thelia extends Kernel
}
$this->initPropel();
}
protected function initPropel()
{
if (file_exists(THELIA_ROOT . '/local/config/database.yml') === false) {
@@ -104,10 +104,10 @@ class Thelia extends Kernel
}
/**
*
* Load some configuration
*
* Load some configuration
* Initialize all plugins
*
*
*/
protected function loadConfiguration(ContainerBuilder $container)
{
@@ -124,18 +124,19 @@ class Thelia extends Kernel
try {
$loader = new XmlFileLoader($container, new FileLocator(THELIA_MODULE_DIR . "/" . ucfirst($module->getCode()) . "/Config"));
$loader->load("config.xml");
} catch(\InvalidArgumentException $e) {
}
catch(\InvalidArgumentException $e) {
// FIXME: process module configuration exception
}
}
}
/**
*
*
* initialize session in Request object
*
*
* All param must be change in Config table
*
*
* @param \Symfony\Component\HttpFoundation\Request $request
*/
@@ -225,7 +226,7 @@ class Thelia extends Kernel
{
$bundles = array(
/* TheliaBundle contain all the dependency injection description */
new Bundle\TheliaBundle()
new Bundle\TheliaBundle(),
);
/**