Explorar o código

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

Jordi Boggiano %!s(int64=12) %!d(string=hai) anos
pai
achega
c1ff6ea62b
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      bin/composer

+ 1 - 2
bin/composer

@@ -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';