Commit 33d8ddf8 authored by Igor Wiedler's avatar Igor Wiedler

temporary fix for the web stub

parent d9d397b1
...@@ -105,9 +105,10 @@ class Compiler ...@@ -105,9 +105,10 @@ class Compiler
require_once __DIR__.'/autoload.php'; require_once __DIR__.'/autoload.php';
$command = isset($argv[1]) ? $argv[1] : null; if ('cli' === php_sapi_name()) {
$command = isset($argv[1]) ? $argv[1] : null;
switch ($command) { switch ($command) {
case 'update': case 'update':
$remoteFilename = 'http://silex-project.org/get/silex.phar'; $remoteFilename = 'http://silex-project.org/get/silex.phar';
$localFilename = getcwd().'/silex.phar'; $localFilename = getcwd().'/silex.phar';
...@@ -128,6 +129,7 @@ switch ($command) { ...@@ -128,6 +129,7 @@ switch ($command) {
default: default:
printf("Silex version %s\n", Silex\Application::VERSION); printf("Silex version %s\n", Silex\Application::VERSION);
break; break;
}
} }
__HALT_COMPILER(); __HALT_COMPILER();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment