3 final class DiffusionRepositoryEditDeleteController
4 extends DiffusionRepositoryManageController
{
6 public function handleRequest(AphrontRequest
$request) {
7 $response = $this->loadDiffusionContextForEdit();
12 $viewer = $this->getViewer();
13 $drequest = $this->getDiffusionRequest();
14 $repository = $drequest->getRepository();
16 $panel_uri = id(new DiffusionRepositoryBasicsManagementPanel())
17 ->setRepository($repository)
20 $doc_uri = PhabricatorEnv
::getDoclink(
21 'Permanently Destroying Data');
23 return $this->newDialog()
24 ->setTitle(pht('Delete Repository'))
27 'To permanently destroy this repository, run this command from '.
31 'phabricator/ $ ./bin/remove destroy %R',
32 $repository->getMonogram()))
35 'Repositories can not be permanently destroyed from the web '.
36 'interface. See %s in the documentation for more information.',
43 pht('Permanently Destroying Data'))))
44 ->addCancelButton($panel_uri, pht('Close'));