Merge branch 'master' of https://github.com/thelia/thelia into coupon

# By Etienne Roudeix (1) and others
# Via Etienne Roudeix (2) and Manuel Raynaud (2)
* 'master' of https://github.com/thelia/thelia:
  clean some code
  fix phpdoc
  Added windows version of reset_install script
This commit is contained in:
gmorel
2013-09-09 10:04:57 +02:00
3 changed files with 39 additions and 8 deletions

View File

@@ -293,13 +293,11 @@ class TheliaLoop extends AbstractSmartyPlugin
}
/**
* @param $smartyParams
*
* find the loop class with his name and construct an instance of this class
*
* @param string $name
* @return \Thelia\Core\Template\Element\BaseLoop
* @throws InvalidElementException
* @throws ElementNotFoundException
* @return object
* @throws \Thelia\Core\Template\Element\Exception\InvalidElementException
* @throws \Thelia\Core\Template\Element\Exception\ElementNotFoundException
*/
protected function createLoopInstance($smartyParams)
{

View File

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