EzSystems\PlatformInstallerBundle\Command\InstallPlatformCommand::configuredDatabaseExists PHP Method

configuredDatabaseExists() private method

    private function configuredDatabaseExists()
    {
        try {
            $this->db->connect();
        } catch (ConnectionException $e) {
            // @todo 1049 is MySQL's code for "database doesn't exist", refactor
            if ($e->getPrevious()->getCode() == 1049) {
                return false;
            }
            throw $e;
        }
        return true;
    }