0
我需要重写fosrestbundle/Controller/ExceptionController。 对于我已经创建了一个控制器:Symfony如何覆盖fosrestbundle
class ExceptionApiController extends ExceptionController
{
public function showAction(Request $request, $exception, DebugLoggerInterface $logger = null)
{
$response = parent::showAction();
}
}
但如何使用$回应?如何增加价值?
好的,谢谢我试过这样的工作很好 – Ygg69