/**
  * Return a form to create a new folder.
  *
  * @param FolderFormBuilder $form
  * @param                   $path
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function create(FolderFormBuilder $form, DiskRepositoryInterface $disks, FolderRepositoryInterface $folders, $disk, $path = null)
 {
     $form->setDisk($disk = $disks->findBySlug($disk));
     if ($path && ($parent = $folders->findByPath($path, $disk))) {
         $form->setParent($parent);
     }
     return $form->render();
 }
 /**
  * Edit an existing entry.
  *
  * @param FolderFormBuilder $form
  * @param                   $id
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function edit(FolderFormBuilder $form, $id)
 {
     return $form->render($id);
 }