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)) if (!isset($registered))
{ {
/** @var \Composer\Autoload\ClassLoader $loader */ require JPATH_ADMINISTRATOR . '/components/com_oauthserver/vendor/autoload.php';
$loader = require JPATH_ADMINISTRATOR . '/components/com_oauthserver/vendor/autoload.php'; $registered = true;
$loader->unregister();
$loader->register();
} }
} }
} }

View File

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