From 22935722a7eff2af1b1b3c56e33f1fd817058c0b Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 23 Jan 2018 08:31:24 +0100 Subject: [PATCH] Minor - remove logs, --- main/install/index.php | 7 ------- main/install/install.lib.php | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/main/install/index.php b/main/install/index.php index edef4f77da..c10bc2db4a 100755 --- a/main/install/index.php +++ b/main/install/index.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); diff --git a/main/install/install.lib.php b/main/install/install.lib.php index 9dc7859794..18eab99b42 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -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);