mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-23 22:34: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))
|
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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user