0
我需要重寫fosrestbundle/Controller/ExceptionController。 對於我已經創建了一個控制器:Symfony如何覆蓋fosrestbundle
class ExceptionApiController extends ExceptionController
{
public function showAction(Request $request, $exception, DebugLoggerInterface $logger = null)
{
$response = parent::showAction();
}
}
但如何使用$迴應?如何增加價值?
好的,謝謝我試過這樣的工作很好 – Ygg69