/** * Replaces the default output stream of Symfony's * CliDumper and HtmlDumper classes in order to * be able to run on Google App Engine. * * 'php://stdout' is used by CliDumper, * 'php://output' is used by HtmlDumper, * both are not supported on GAE. */ protected function replaceDefaultSymfonyLineDumpers() { HtmlDumper::$defaultOutput = CliDumper::$defaultOutput = function ($line, $depth, $indentPad) { if (-1 !== $depth) { echo str_repeat($indentPad, $depth) . $line . PHP_EOL; } }; }