/**
* @ApiDoc(
* section="Bundle Editor",
* description="Saves the composer config"
* )
*
* @Rest\QueryParam(name="bundle", requirements=".*", strict=true, description="The bundle name")
*
* @Rest\Post("/admin/system/bundle/editor/config")
*
* @param string $bundle
*
* @return array
*/
public function saveConfigAction($bundle)
{
if ($this->jarves->getBundleDir($bundle)) {
$config = $this->utils->getComposerArray($bundle);
$config['_path'] = $this->jarves->getBundleDir($bundle);
return $config;
}
return "#todo";
}