mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 17:10:29 +00:00
Update DomainIsCreatedListener.php
This commit is contained in:
parent
40aa7437ff
commit
5b26e0c8d0
1 changed files with 23 additions and 23 deletions
|
@ -56,29 +56,29 @@ class DomainIsCreatedListener
|
||||||
$createdDatabaseHost = null;
|
$createdDatabaseHost = null;
|
||||||
$createdDatabasePort = null;
|
$createdDatabasePort = null;
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
|
//
|
||||||
$databaseUserPassword = Str::password(24);
|
// $databaseUserPassword = Str::password(24);
|
||||||
$databaseName = $databaseUsername = 'mw'.time();
|
// $databaseName = $databaseUsername = 'mw'.time();
|
||||||
|
//
|
||||||
$hss = new HostingSubscriptionService($findDomain->hosting_subscription_id);
|
// $hss = new HostingSubscriptionService($findDomain->hosting_subscription_id);
|
||||||
$createDatabase = $hss->createDatabase($databaseName);
|
// $createDatabase = $hss->createDatabase($databaseName);
|
||||||
if (isset($createDatabase['data']['database_name'])) {
|
// if (isset($createDatabase['data']['database_name'])) {
|
||||||
$createdDatabaseName = $createDatabase['data']['database_name'];
|
// $createdDatabaseName = $createDatabase['data']['database_name'];
|
||||||
}
|
// }
|
||||||
$createDatabaseUser = $hss->createDatabaseUser($createDatabase['data']['database_id'], $databaseUsername,$databaseUserPassword);
|
// $createDatabaseUser = $hss->createDatabaseUser($createDatabase['data']['database_id'], $databaseUsername,$databaseUserPassword);
|
||||||
if (isset($createDatabaseUser['data']['database_user'])) {
|
// if (isset($createDatabaseUser['data']['database_user'])) {
|
||||||
$createdDatabaseUsername = $createDatabaseUser['data']['database_user'];
|
// $createdDatabaseUsername = $createDatabaseUser['data']['database_user'];
|
||||||
$createdDatabaseUserPassword = $createDatabaseUser['data']['database_password'];
|
// $createdDatabaseUserPassword = $createDatabaseUser['data']['database_password'];
|
||||||
$createdDatabaseHost = $createDatabase['data']['database_host'];
|
// $createdDatabaseHost = $createDatabase['data']['database_host'];
|
||||||
$createdDatabasePort = $createDatabase['data']['database_port'];
|
// $createdDatabasePort = $createDatabase['data']['database_port'];
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
$databasesAreCreated = true;
|
// $databasesAreCreated = true;
|
||||||
|
//
|
||||||
} catch (\Exception $e) {
|
// } catch (\Exception $e) {
|
||||||
$databasesAreCreated = false;
|
// $databasesAreCreated = false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$installationType = 'symlink';
|
$installationType = 'symlink';
|
||||||
$installationLanguage = 'bg';
|
$installationLanguage = 'bg';
|
||||||
|
|
Loading…
Reference in a new issue