add($rootDir.'framework/src/', "Maveriks"); if (!is_dir($rootDir.'vendor')) { if (file_exists($rootDir.'composer.phar')) { throw new Exception( "ERROR: Vendors are missing!".PHP_EOL. "Please execute the following command to install vendors:".PHP_EOL.PHP_EOL. "$>php composer.phar install" ); } else { throw new Exception( "ERROR: Vendors are missing!".PHP_EOL. "Please execute the following commands to prepare/install vendors:".PHP_EOL.PHP_EOL. "$>curl -sS https://getcomposer.org/installer | php".PHP_EOL. "$>php composer.phar install" ); } } $loader->addModelClassPath($rootDir."workflow/engine/classes/model/"); $loader->add($rootDir.'workflow/engine/src/', "ProcessMaker"); $loader->add($rootDir.'workflow/engine/src/'); $loader->add($rootDir.'vendor/luracast/restler/vendor', "Luracast"); $loader->add($rootDir.'vendor/bshaffer/oauth2-server-php/src/', "OAuth2"); $loader->addClass("Bootstrap", $rootDir.'gulliver/system/class.bootstrap.php'); } /////// set_include_path( PATH_CORE.PATH_SEPARATOR. PATH_THIRDPARTY.PATH_SEPARATOR. PATH_THIRDPARTY.'pear'.PATH_SEPARATOR. PATH_RBAC_CORE.PATH_SEPARATOR. get_include_path() ); // include bootstrap Class require_once(PATH_GULLIVER.PATH_SEP.'class.bootstrap.php'); //testing the autoloader feature spl_autoload_register(array('Bootstrap', 'autoloadClass')); bootPMTest(); Bootstrap::registerClass('headPublisher', PATH_GULLIVER."class.headPublisher.php"); Bootstrap::registerClass('G', PATH_GULLIVER."class.g.php"); Bootstrap::registerClass('System', PATH_HOME."engine/classes/class.system.php"); Bootstrap::registerClass('headPublisher', PATH_GULLIVER."class.headPublisher.php"); Bootstrap::registerClass('publisher', PATH_GULLIVER."class.publisher.php"); Bootstrap::registerClass('xmlform', PATH_GULLIVER."class.xmlform.php"); Bootstrap::registerClass('XmlForm_Field', PATH_GULLIVER."class.xmlform.php"); Bootstrap::registerClass('xmlformExtension', PATH_GULLIVER."class.xmlformExtension.php"); Bootstrap::registerClass('form', PATH_GULLIVER."class.form.php"); Bootstrap::registerClass('menu', PATH_GULLIVER."class.menu.php"); Bootstrap::registerClass('Xml_Document', PATH_GULLIVER."class.xmlDocument.php"); Bootstrap::registerClass('DBSession', PATH_GULLIVER."class.dbsession.php"); Bootstrap::registerClass('DBConnection', PATH_GULLIVER."class.dbconnection.php"); Bootstrap::registerClass('DBRecordset', PATH_GULLIVER."class.dbrecordset.php"); Bootstrap::registerClass('DBTable', PATH_GULLIVER."class.dbtable.php"); Bootstrap::registerClass('xmlMenu', PATH_GULLIVER."class.xmlMenu.php"); Bootstrap::registerClass('XmlForm_Field_FastSearch', PATH_GULLIVER."class.xmlformExtension.php"); Bootstrap::registerClass('XmlForm_Field_XmlMenu', PATH_GULLIVER."class.xmlMenu.php"); Bootstrap::registerClass('XmlForm_Field_WYSIWYG_EDITOR', PATH_GULLIVER."class.wysiwygEditor.php"); Bootstrap::registerClass('Controller', PATH_GULLIVER."class.controller.php"); Bootstrap::registerClass('HttpProxyController', PATH_GULLIVER."class.httpProxyController.php"); Bootstrap::registerClass('templatePower', PATH_GULLIVER."class.templatePower.php"); Bootstrap::registerClass('XmlForm_Field_SimpleText', PATH_GULLIVER."class.xmlformExtension.php"); Bootstrap::registerClass('Groups', PATH_HOME."engine/classes/class.groups.php"); Bootstrap::registerClass('Tasks', PATH_HOME."engine/classes/class.tasks.php"); Bootstrap::registerClass('Calendar', PATH_HOME."engine/classes/class.calendar.php"); Bootstrap::registerClass('processMap', PATH_HOME."engine/classes/class.processMap.php"); Bootstrap::registerSystemClasses(); Bootstrap::initVendors(); Bootstrap::LoadSystem('monologProvider'); // including workspace shared classes -> particularly for pmTables set_include_path(get_include_path().PATH_SEPARATOR.PATH_WORKSPACE); $arraySystemConfiguration = \System::getSystemConfiguration(); ini_set('date.timezone', $arraySystemConfiguration['time_zone']); //Set Time Zone // set include path set_include_path( PATH_CORE.PATH_SEPARATOR. PATH_THIRDPARTY.PATH_SEPARATOR. PATH_THIRDPARTY."pear".PATH_SEPARATOR. PATH_RBAC_CORE.PATH_SEPARATOR. get_include_path() ); require_once "pear/Net/JSON.php"; Propel::init(PATH_CORE."config/databases.php"); Creole::registerDriver('dbarray', 'creole.contrib.DBArrayConnection'); //read memcached configuration $config = System::getSystemConfiguration('', '', SYS_SYS); define('MEMCACHED_ENABLED', $config ['memcached']); define('MEMCACHED_SERVER', $config ['memcached_server']); define('TIME_ZONE', $config ['time_zone']); require_once 'WorkflowTestCase.php'; require_once(PATH_CLASSES.'model/Task.php'); global $RBAC; $RBAC = \RBAC::getSingleton( PATH_DATA, session_id() ); $RBAC->sSystem = 'PROCESSMAKER'; \G::LoadClass('pmFunctions');