taskman_deps/deps.inc.php

18 lines
448 B
PHP
Raw Normal View History

2022-05-18 10:39:08 +03:00
<?php
namespace taskman;
task('deps_update', function()
{
2022-12-14 15:26:26 +03:00
update_composer(true);
2022-05-18 10:39:08 +03:00
});
2022-12-14 15:26:26 +03:00
//NOTE: COMPOSER_FORCE_UPDATE = true will make composer to update packages and
// a lock file
// COMPOSER_FORCE_UPDATE = false will make composer install dependencies
// listed in a lock file in case if it's present
function update_composer($COMPOSER_FORCE_UPDATE = false)
2022-05-18 10:39:08 +03:00
{
global $GAME_ROOT;
include("$GAME_ROOT/composer/update.php");
}