composer

Discussion for TimeTrex open source community developers.
Post Reply
alter
Posts: 1
Joined: Thu Jul 05, 2018 7:23 pm

composer

Post by alter » 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

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');

}

Post Reply