Set parallel bootstrap file if the extension is loaded

This commit is contained in:
Dylan K. Taylor 2019-06-18 14:05:39 +01:00
parent 7b049b6db1
commit bb675ac99b

View File

@ -157,6 +157,9 @@ namespace pocketmine {
if(\pocketmine\COMPOSER_AUTOLOADER_PATH !== false and is_file(\pocketmine\COMPOSER_AUTOLOADER_PATH)){
require_once(\pocketmine\COMPOSER_AUTOLOADER_PATH);
if(extension_loaded('parallel')){
\parallel\bootstrap(\pocketmine\COMPOSER_AUTOLOADER_PATH);
}
}else{
critical_error("Composer autoloader not found at " . $bootstrap);
critical_error("Please install/update Composer dependencies or use provided builds.");