WIP : install wizard : step 1, 2, 3

This commit is contained in:
gmorel
2013-09-16 19:00:28 +02:00
parent cfc52c4e7f
commit 63472b9f80
11 changed files with 612 additions and 68 deletions

View File

@@ -37,6 +37,8 @@ abstract class BaseInstall
* Constructor
*
* @param bool $verifyInstall Verify if an installation already exists
*
* @throws Exception\AlreadyInstallException
*/
public function __construct($verifyInstall = true)
{
@@ -47,10 +49,9 @@ abstract class BaseInstall
} else {
$this->isConsoleMode = false;
}
/* TODO : activate this part
if (file_exists(THELIA_ROOT . '/local/config/database.yml') && $verifyInstall) {
throw new AlreadyInstallException("Thelia is already installed");
}*/
}
$this->exec();