ankane/exceptional-php — Issue #11: Pass $action/$controller regardless of HTTP_HOST
Author: tjchambers
Created: 2012-01-19 18:44:27+00:00
State: open

I am using this fine package not only for the code that operates from my web server directly, but also for code under unit test and code that runs in the CLI as a background agent (triggered as a GEARMAN Worker).

If I specify $controller and/or $action in this non-webserver based environment, because HTTP_HOST is not defined, exceptional-php skips passing my action/controller values. IMHO these should be sent to Exceptional regardless of the web context. I understand these are essentially crafted around the web MVC paradigm, but since they are useful outside that and beyond Rails for example, they should be passed if set.