prepend autoloader in composer.json config

This commit is contained in:
Artem Vasilev 2024-03-16 23:04:42 +03:00
parent bbff828f84
commit a2f67e7bb6
2 changed files with 4 additions and 7 deletions

View File

@ -25,12 +25,8 @@ abstract class ComponentHelper
if (!isset($registered))
{
/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require JPATH_ADMINISTRATOR . '/components/com_oauthserver/vendor/autoload.php';
$loader->unregister();
$loader->register();
require JPATH_ADMINISTRATOR . '/components/com_oauthserver/vendor/autoload.php';
$registered = true;
}
}
}

View File

@ -29,6 +29,7 @@
"vendor-dir": "com_oauthserver/administrator/vendor",
"github-protocols": [
"https"
]
],
"prepend-autoloader": false
}
}