composer
Posted: Thu Jul 05, 2018 7:33 pm
Hi all
We needs to get composer packages loaded during timetrex run.
includes/global.inc.php
it would be great to have next code below the line
spl_autoload_register('__autoload'); //Registers the autoloader mainly for use with PHPUnit
We needs to get composer packages loaded during timetrex run.
includes/global.inc.php
it would be great to have next code below the line
spl_autoload_register('__autoload'); //Registers the autoloader mainly for use with PHPUnit
Code: Select all
if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR .'vendor' . DIRECTORY_SEPARATOR .'autoload.php')) {
require_once(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR .'vendor' . DIRECTORY_SEPARATOR . 'autoload.php');
}