diff --git a/bin/console b/bin/console index c00169e..68814ef 100644 --- a/bin/console +++ b/bin/console @@ -2,7 +2,8 @@ writeln('Start'); - $_SERVER['HTTP_HOST'] = 'www.bebeboutik.com'; - - $webroot = getenv('WEBROOT'); - require_once dirname(__FILE__).'/../../config/ps_autoload.php'; - require_once $webroot.'/config/config.inc.php'; + require_once __DIR__ . '/../../config/bootstrap_sf.php'; $min_id_product = \Db::getInstance()->getValue(' SELECT MIN(`id_product`) FROM `'._DB_PREFIX_.'product` WHERE `date_add` > DATE_SUB(NOW(), INTERVAL 10 DAY)