Add the appropriate laravel bootstrapping to PM web application and command line tool.

This commit is contained in:
Taylor Dondich
2017-07-27 15:29:55 -07:00
committed by davidcallizaya
parent 601471be9e
commit 0ccae19bd4
2 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env php
<?php
$scriptDir = dirname(__FILE__).'/';
// Because laravel has a __ helper function, it's important we include the class.g file to ensure our __ is used.
require_once __DIR__.'/gulliver/system/class.g.php';
require_once __DIR__.'/bootstrap/autoload.php';
require_once __DIR__.'/bootstrap/app.php'; $scriptDir = dirname(__FILE__).'/';
define("PROCESSMAKER_PATH", $scriptDir);
define("WORKFLOW_PATH", $scriptDir . 'workflow/');