diff --git a/com_oauthserver/administrator/src/Helper/ComponentHelper.php b/com_oauthserver/administrator/src/Helper/ComponentHelper.php index 43ae6c5..4e534db 100644 --- a/com_oauthserver/administrator/src/Helper/ComponentHelper.php +++ b/com_oauthserver/administrator/src/Helper/ComponentHelper.php @@ -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; } } } diff --git a/composer.json b/composer.json index 4e02075..b2bd6d9 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "vendor-dir": "com_oauthserver/administrator/vendor", "github-protocols": [ "https" - ] + ], + "prepend-autoloader": false } }