mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-23 18:24:50 +03:00
prepend autoloader in composer.json config
This commit is contained in:
parent
bbff828f84
commit
a2f67e7bb6
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
"vendor-dir": "com_oauthserver/administrator/vendor",
|
||||
"github-protocols": [
|
||||
"https"
|
||||
]
|
||||
],
|
||||
"prepend-autoloader": false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user