Harmonisation ps and sf

This commit is contained in:
Michael RICOIS 2018-01-25 17:59:03 +01:00
parent fd118aa0fc
commit 5aa5a1f2e1
4 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,8 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../config/ps_autoload.php';
use Symfony\Component\Console\Application;
use Symfony\Component\Dotenv\Dotenv;

View File

@ -1,4 +1,4 @@
<?php
require_once __DIR__ . '/bootstrap.php';
require_once __DIR__ . '/../config/bootstrap_ps.php';
echo Configuration::get('PS_SHOP_NAME')."\n";

View File

@ -23,11 +23,7 @@ class CacheCommand extends Command
{
$output->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)