1
0
Fork 0

Fail if the CLI SAPI is not used to invoke composer

pull/1782/head
Jordi Boggiano 2013-04-09 10:32:38 +02:00
parent c86a723026
commit 3bec538970
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
#!/usr/bin/env php
<?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);
}
require __DIR__.'/../src/bootstrap.php';
use Composer\Console\Application;