. */ /* */ /*************************************************************************************/ namespace Thelia\Install; use Thelia\Install\Exception\AlreadyInstallException; /** * Class BaseInstall * @author Manuel Raynaud */ abstract class BaseInstall { /** * Verify if an installation already exists */ public function __construct($verifyInstall = true) { if (file_exists(THELIA_ROOT . '/local/config/database.yml') && $verifyInstall) { throw new AlreadyInstallException("Thelia is already installed"); } $this->exec(); } abstract public function exec(); }