@echo off
rem Composer run under PHP 8.5.12 (so platform checks use the intended runtime).
rem Override the phar with:  set NH_POS_COMPOSER=C:\path\to\composer.phar
call "%~dp0_resolve-php.cmd" || exit /b 1
set "COMPOSERPHAR=%NH_POS_COMPOSER%"
if "%COMPOSERPHAR%"=="" set "COMPOSERPHAR=C:\composer\composer.phar"
if not exist "%COMPOSERPHAR%" (
  echo [NH POS] composer.phar not found at "%COMPOSERPHAR%". Set NH_POS_COMPOSER.>&2
  exit /b 1
)
"%PHPBIN%" "%COMPOSERPHAR%" %*
