[App] Use trigger_error instead of echo

This commit is contained in:
Chris Boden 2014-01-29 06:55:07 -05:00
parent 0adf940068
commit bf61fdbed4

View File

@ -56,7 +56,7 @@ class App {
*/
public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) {
if (extension_loaded('xdebug')) {
echo "XDebug extension detected. Remember to disable this if performance testing or going live!\n";
trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING);
}
if (null === $loop) {