File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,11 @@ public function validation(ValidationException $error): Response
6666 * a MissingView exception
6767 *
6868 * @param string $template The template to render.
69- * @return \Cake\Http\Response
69+ * @param bool $skipControllerCheck Skip checking controller for existence of
70+ * method matching the exception name.
71+ * @return \Cake\Http\Response A response object that can be sent.
7072 */
71- protected function _outputMessage (string $ template ): Response
73+ protected function _outputMessage (string $ template, bool $ skipControllerCheck = false ): Response
7274 {
7375 $ viewVars = ['success ' , 'data ' ];
7476 $ this ->controller ->set ('success ' , false );
@@ -85,7 +87,7 @@ protected function _outputMessage(string $template): Response
8587 $ viewVars
8688 );
8789
88- return parent ::_outputMessage ($ template );
90+ return parent ::_outputMessage ($ template, $ skipControllerCheck );
8991 }
9092
9193 /**
You can’t perform that action at this time.
0 commit comments