Moved laravel boot after ProcessMaker loads its evironment constants. (PATH_DATA for shared folder)
This commit is contained in:
davidcallizaya
2017-08-07 13:02:26 -04:00
parent cd0bd1d25b
commit 21a0b9508e
13 changed files with 52 additions and 28 deletions

View File

@@ -202,7 +202,7 @@ class workspaceTools
$start = microtime(true);
CLI::logging("> Update framework paths...\n");
$this->updatingFrameworkPaths($workSpace);
$this->updateFrameworkPaths($workSpace);
$stop = microtime(true);
CLI::logging("<*> Update framework paths took " . ($stop - $start) . " seconds.\n");
}
@@ -3909,17 +3909,17 @@ class workspaceTools
* Updating framework directory structure
*
*/
private function updatingFrameworkPaths($workSpace = SYS_SYS)
private function updateFrameworkPaths($workSpace = SYS_SYS)
{
$paths = [
PATH_DATA.'framework' => 0770,
PATH_DATA.'framework'.DIRECTORY_SEPARATOR.'cache' => 0770,
PATH_DATA.'framework' . DIRECTORY_SEPARATOR.'cache' => 0770,
];
foreach ($paths as $path => $permission) {
if (!file_exists($path)) {
G::mk_dir($path, $permission);
}
CLI::logging(" $path [".(file_exists($path) ? 'OK' : 'MISSING')."]\n");
CLI::logging(" $path [" . (file_exists($path) ? 'OK' : 'MISSING') . "]\n");
}
}
}

View File

@@ -285,7 +285,7 @@ class Translation extends BaseTranslation
/* Load strings from plugin translation.php.
* @parameter $languageId (es|en|...).
*/
public function generateFileTranslationPlugin ($plugin, $languageId = '')
public static function generateFileTranslationPlugin ($plugin, $languageId = '')
{
if (!file_exists(PATH_PLUGINS . $plugin . PATH_SEP . 'translations' . PATH_SEP . 'translations.php')) {
return;

View File

@@ -1749,8 +1749,8 @@ class Installer extends Controller
private function verifySharedFrameworkPaths($sharedPath)
{
$paths = [
$sharedPath.'framework' => 0770,
$sharedPath.'framework'.DIRECTORY_SEPARATOR.'cache' => 0770,
$sharedPath . 'framework' => 0770,
$sharedPath . 'framework' . DIRECTORY_SEPARATOR . 'cache' => 0770,
];
foreach ($paths as $path => $permission) {
if (!file_exists($path)) {