Skip to content

Commit 42b7b9c

Browse files
committed
feat: improve autoload template
1 parent 6fa0f70 commit 42b7b9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Templates/autoload.php.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ if (!function_exists('rth_trigger_error_once')) {
2929
}
3030
}
3131

32-
//if (strpos(__DIR__, 'vendor-no-composer') !== false) {
32+
if (strpos(__DIR__, 'vendor-no-composer') !== false) {
3333
/** E_USER_DEPRECATED does not work */
3434
rth_trigger_error_once(
3535
'The file vendor-no-composer/autoload.php is deprecated. Please use vendor-mmlc/autoload.php instead. This warning appears because some module developers still include the outdated file vendor-no-composer/autoload.php. While this is not yet an issue, it may cause problems in future versions of MMLC, when vendor-no-composer/autoload.php will be removed. Note: This message is logged only once every 3600 seconds.',
3636
E_USER_NOTICE,
3737
3600
3838
);
39-
//}
39+
}
4040

4141
$rth_class = '\Composer\Autoload\ClassLoader';
4242

0 commit comments

Comments
 (0)