1
0
Fork 0

Just output a warning but don't prevent usage through non-cli SAPIs

pull/1789/head
Jordi Boggiano 2013-04-11 10:23:35 +02:00
parent 894f530898
commit c1ff6ea62b
1 changed files with 1 additions and 2 deletions

View File

@ -2,8 +2,7 @@
<?php
if (PHP_SAPI !== 'cli') {
echo 'Composer should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
exit(1);
echo 'Warning: Composer should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
}
require __DIR__.'/../src/bootstrap.php';