-
Fabien Potencier authored
Commits ------- 9c95e2f6 only execute phar stub on direct invocation of phar archive Discussion ---------- Make silex.phar usable in CLI applications Currently, requiring silex.phar in a CLI application that takes arguments is not possible, as the phar stub interferes with the execution of the application. I added a check to the stub which will execute the main stub code only if the phar file is directly invoked. We ran into this issue when trying to reuse the dependency setup from our Silex-based web application in the Doctrine2 ORM CLI console application, which obviously requires arguments. I know Silex is not supposed to run command line applications, but being able to reuse already configured dependencies in a CLI application should be made possible. --------------------------------------------------------------------------- by igorw at 2011/07/10 15:58:36 -0700 +1
3d8ba843
Name |
Last commit
|
Last update |
---|---|---|
doc | ||
src/Silex | ||
tests | ||
vendor | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
autoload.php | ||
compile | ||
example.htaccess | ||
phpunit.xml.dist |