Symfony2: Add a global option to console commands and generate a PID file | PHP & Symfony | Development on Various Platforms | Scoop.it

Recently I read the book Signaling PHP by Cal Evans. It’s a short book, yet very affordable and it learned me a couple of things. First of all it explains about how you can “capture” a Ctrl+C on your long-running command and do some necessary cleanup work before actually terminating the application.


Via Arno_Raulet