This commit is contained in:
2018-11-02 07:37:22 +01:00
parent 6ff6cc9563
commit 09ee6ddc3e
37 changed files with 5659 additions and 553545 deletions

View File

@@ -61,7 +61,7 @@ class AppController extends Controller
public function beforeRender(Event $event)
{
if (!array_key_exists('_serialize', $this->viewVars) &&
in_array($this->response->type(), ['application/json', 'application/xml'])
in_array($this->response->getType(), ['application/json', 'application/xml'])
) {
$this->set('_serialize', true);
}