public function installAll()
{
try {
$response = $this->manager()->installPackages();
} catch (\Exception $e) {
return $this->getJsonException($e);
}
if ($response === 0) {
return new Response($this->manager()->getOutput());
}
return $this->getJsonException(new PackageManagerException($this->manager()->getOutput(), $response));
}