Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
33d8ddf8
Commit
33d8ddf8
authored
Apr 17, 2011
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary fix for the web stub
parent
d9d397b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
+25
-23
src/Silex/Compiler.php
src/Silex/Compiler.php
+25
-23
No files found.
src/Silex/Compiler.php
View file @
33d8ddf8
...
@@ -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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment