fastD
fastD copied to clipboard
没有捕获到throwable错误
我发现框架并没有能捕捉到throwable错误,譬如我在控制器new一个不存在的类,访问接口发现并没有报错。
日志记录了如下信息: [2020-05-11 11:48:47] dobee.ERROR: The "Symfony\Component\Debug\Exception\FatalThrowableError" class is deprecated since Symfony 4.4. { "msg":"The "Symfony\Component\Debug\Exception\FatalThrowableError" class is deprecated since Symfony 4.4.", "code":0, "file":"E:\phpstudy\WWW\localhost\fastd-demo\vendor\symfony\debug\Exception\FatalThrowableError.php", "line":14, "trace":[ "#0 [internal function]: FastD\Application->FastD\{closure}(16384, 'The "Symfony\\Co...', 'E:\\phpstudy\\WWW...', 14, Array)", "#1 E:\phpstudy\WWW\localhost\fastd-demo\vendor\symfony\debug\Exception\FatalThrowableError.php(14): trigger_error('The "Symfony\\Co...', 16384)", "#2 E:\phpstudy\WWW\localhost\fastd-demo\vendor\composer\ClassLoader.php(444): include('E:\\phpstudy\\WWW...')", "#3 E:\phpstudy\WWW\localhost\fastd-demo\vendor\composer\ClassLoader.php(322): Composer\Autoload\includeFile('E:\\phpstudy\\WWW...')", "#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Symfony\\Compone...')", "#5 E:\phpstudy\WWW\localhost\fastd-demo\vendor\fastd\fastd\src\Application.php(177): spl_autoload_call('Symfony\\Compone...')", "#6 E:\phpstudy\WWW\localhost\fastd-demo\vendor\fastd\fastd\src\Application.php(258): FastD\Application->handleRequest(Object(FastD\Http\ServerRequest))", "#7 E:\phpstudy\WWW\localhost\fastd-demo\web\index.php(16): FastD\Application->run()", "#8 {main}" ] } []