clean some code
This commit is contained in:
@@ -76,7 +76,6 @@ class Thelia extends Kernel
|
|||||||
|
|
||||||
$definePropel = new DefinePropel(new DatabaseConfiguration(),
|
$definePropel = new DefinePropel(new DatabaseConfiguration(),
|
||||||
Yaml::parse(THELIA_ROOT . '/local/config/database.yml'));
|
Yaml::parse(THELIA_ROOT . '/local/config/database.yml'));
|
||||||
$propelConfig = $definePropel->getConfig();
|
|
||||||
$serviceContainer = Propel::getServiceContainer();
|
$serviceContainer = Propel::getServiceContainer();
|
||||||
$serviceContainer->setAdapterClass('thelia', 'mysql');
|
$serviceContainer->setAdapterClass('thelia', 'mysql');
|
||||||
$manager = new ConnectionManagerSingle();
|
$manager = new ConnectionManagerSingle();
|
||||||
@@ -84,7 +83,6 @@ class Thelia extends Kernel
|
|||||||
$serviceContainer->setConnectionManager('thelia', $manager);
|
$serviceContainer->setConnectionManager('thelia', $manager);
|
||||||
|
|
||||||
if ($this->isDebug()) {
|
if ($this->isDebug()) {
|
||||||
//$serviceContainer->setLogger('defaultLogger', Tlog::getInstance());
|
|
||||||
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
||||||
$con->useDebug(true);
|
$con->useDebug(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user