Skip to content

Commit 5472608

Browse files
committed
Send json decoded compilation data to website.
1 parent efce849 commit 5472608

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Symfony/src/Codebender/ApiBundle/Controller/DefaultController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public function compileWebsiteAction($auth_key, $version)
5858

5959
// perform the actual post to the compiler
6060
$data = $apihandler->post_raw_data($this->container->getParameter('compiler'), $request_content);
61+
$decoded_compiler_data = json_decode($data, true);
6162

62-
$responsedata = array('success' => true, 'personal' => $personalMatchedLibs, 'library' => $headersArr['libraries'], 'foundFiles' => $headersArr['foundFiles'], 'notFoundHeaders' => $headersArr['notFoundHeaders'], 'compileResponse' => $data);
63+
$responsedata = array('success' => true, 'personal' => array_keys($personalMatchedLibs), 'library' => $headersArr['libraries'], 'foundFiles' => $headersArr['foundFiles'], 'notFoundHeaders' => $headersArr['notFoundHeaders'], 'compileResponse' => $decoded_compiler_data);
6364

6465
return new Response(json_encode($responsedata));
6566
}

0 commit comments

Comments
 (0)