Debut du travail sur le B.O.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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(),
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user