Hi,
When trying to use sfConsoleRequest as the request class in any environment, symfony aborts during startup with an exception ("Call to undefined method sfConsoleRequest::getMethodName").
This happens because sfFactoryConfigHandler generates some code (when handling the "response" factory) that tries to call the getMethodName method on the request object, however this method is only defined in sfWebRequest. This makes any request class that doesn't inherit from sfWebRequest (and doesn't provide its own getMethodName method) unusable as the request class.
Proposed solution: make the offending code generated by sfFactoryConfigHandler conditional on the request object actually providing the getMethodName method. Since it is only used to automatically call "$response->setHeaderOnly(true)" on HTTP "HEAD" requests, which only makes sense with web requests anyway, this should not affect any existing code.
Andreas
PS: What really surprises me is that nobody seems to have noticed this before. AFAICT, the problem actually exists for quite some time now. Looks like nobody is really using the CLI environment, or sfConsoleRequest for that matter...