public function dumpAutoload()
{
try {
$response = $this->manager()->dumpAutoload();
} catch (PackageManagerException $e) {
return $this->getJsonException($e);
}
if ($response === 0) {
$this->app['logger.system']->info($this->manager()->getOutput(), ['event' => 'extensions']);
return new Response($this->manager()->getOutput());
}
throw new PackageManagerException($this->manager()->getOutput(), $response);
}