Skip to content

Commit 7b33bfc

Browse files
authored
Remove default serialization of all view vars.
1 parent 3af754d commit 7b33bfc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Controller/AppController.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ protected function setLocale()
8989
*/
9090
public function beforeRender(Event $event)
9191
{
92-
if (!array_key_exists('_serialize', $this->viewVars) &&
93-
in_array($this->response->type(), ['application/json', 'application/xml'])
94-
) {
95-
$this->set('_serialize', true);
96-
}
9792
$this->set([
9893
'_version' => Configure::read('App.version'),
9994
]);

0 commit comments

Comments
 (0)