Minor - remove logs,

pull/2487/head
jmontoyaa 7 years ago
parent 79cc408310
commit 22935722a7
  1. 7
      main/install/index.php
  2. 4
      main/install/install.lib.php

@ -807,7 +807,6 @@ if (@$_POST['step2']) {
$envFile = api_get_path(SYS_PATH).'.env';
$distFile = api_get_path(SYS_PATH).'.env.dist';
Session::read('_id-1');
$oldSession = $container->get('session');
$params = [
'{{DATABASE_HOST}}' => $dbHostForm,
@ -829,19 +828,13 @@ if (@$_POST['step2']) {
$input = new \Symfony\Component\Console\Input\ArrayInput([]);
$command = $application->find('doctrine:schema:create');
$result = $command->run($input, new ConsoleOutput());
Session::read('_id0');
// No errors
if ($result == 0) {
// Boot kernel and get the doctrine from Symfony container
$kernel->boot();
$container = $kernel->getContainer();
Session::read('_id1');
$container->set('session', $oldSession);
Container::setContainer($container);
Session::read('_id2');
$doctrine = $container->get('doctrine');
$manager = $doctrine->getManager();
$sysPath = api_get_path(SYS_PATH);

@ -2727,7 +2727,7 @@ function updateEnvFile($distFile, $envFile, $params)
* @param string $installationProfile Installation profile, if any was provided
*/
function finishInstallationWithContainer(
$container,
Container $container,
$manager,
$sysPath,
$encryptPassForm,
@ -2752,6 +2752,7 @@ function finishInstallationWithContainer(
Database::setManager($manager);
$sql = getVersionTable();
// Add version table
$connection->executeQuery($sql);
@ -2846,7 +2847,6 @@ function finishInstallationWithContainer(
$manager->persist($accessUrl);
$manager->flush();
$container = \Chamilo\CoreBundle\Framework\Container::$container;
$settingsManager = $container->get('chamilo.settings.manager');
$settingsManager->installSchemas($accessUrl);

Loading…
Cancel
Save