mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Set parallel bootstrap file if the extension is loaded
This commit is contained in:
parent
7b049b6db1
commit
bb675ac99b
@ -157,6 +157,9 @@ namespace pocketmine {
|
|||||||
|
|
||||||
if(\pocketmine\COMPOSER_AUTOLOADER_PATH !== false and is_file(\pocketmine\COMPOSER_AUTOLOADER_PATH)){
|
if(\pocketmine\COMPOSER_AUTOLOADER_PATH !== false and is_file(\pocketmine\COMPOSER_AUTOLOADER_PATH)){
|
||||||
require_once(\pocketmine\COMPOSER_AUTOLOADER_PATH);
|
require_once(\pocketmine\COMPOSER_AUTOLOADER_PATH);
|
||||||
|
if(extension_loaded('parallel')){
|
||||||
|
\parallel\bootstrap(\pocketmine\COMPOSER_AUTOLOADER_PATH);
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
critical_error("Composer autoloader not found at " . $bootstrap);
|
critical_error("Composer autoloader not found at " . $bootstrap);
|
||||||
critical_error("Please install/update Composer dependencies or use provided builds.");
|
critical_error("Please install/update Composer dependencies or use provided builds.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user