I have a symfony task, with a context instance creation :
sfContext::createInstance($this->configuration);
The context is needed because of a call to the get_component
helper function (in order to generate the body of an email). I know sfContext::getInstance() is bad, but I did not write it and can't remove it.
My problem is this line triggers the logging of routing - related messages:
>> sfPatternRouting Match route "homepage" (/) for / with parameters array ( 'module' => 'default', 'action' => 'index',)
How can I get sfRouting to shut up? I keep getting email from my crontab repeating this useless piece of information.
How would I change the configuration so that the options passed to the routing constructor do not contain "logging" => "true"
?
I would like the routing to shut up no matter what my factories.yml files contain.
Of course, it there is an error, be it logged to STDOUT or STDERR, I still want to get an email.
Vlad asked me for my code, so I created a tiny project so you can easily reproduce the bug. Here it is: https://github.com/greg0ire/pwet
If you want to easily reproduce the bug, I created a brand new dummy project, which you can clone. Here are the steps to reproduce the bug:
git clone git://github.com/greg0ire/pwet.git
cd pwet
git submodule init
git submodule update
php web/frontend_dev.php
./symfony pwet --application="frontend"
Notice how php web/frontend_dev.php
is important. It does not generate the same cache files as the CLI would