add namespace PmInstaller

This commit is contained in:
Marco A. Nina Mena
2017-08-15 08:06:44 -04:00
parent 6d5a1e6328
commit bc5afd9e9d
6 changed files with 86 additions and 158 deletions

View File

@@ -1,5 +1,6 @@
<?php
use Processmaker\Core\Installer;
use ProcessMaker\Core\System;
use ProcessMaker\Util\FixReferencePath;
use ProcessMaker\Plugins\Adapters\PluginAdapter;
@@ -1696,7 +1697,7 @@ class WorkspaceTools
}
$workspace = new WorkspaceTools($workspaceName);
if (PmInstaller::isset_site($workspaceName)) {
if (Installer::isset_site($workspaceName)) {
if ($overwrite) {
if (!$workspace->workspaceExists()) {
throw new Exception('We can not overwrite this workspace because the workspace ' . $workspaceName . ' does not exist please check the lower case and upper case.');