Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / diffusion / controller / DiffusionRepositoryEditDeleteController.php
blob93fe70c0fe04ca76f222c5fc84e6f4bf175f20cc
1 <?php
3 final class DiffusionRepositoryEditDeleteController
4 extends DiffusionRepositoryManageController {
6 public function handleRequest(AphrontRequest $request) {
7 $response = $this->loadDiffusionContextForEdit();
8 if ($response) {
9 return $response;
12 $viewer = $this->getViewer();
13 $drequest = $this->getDiffusionRequest();
14 $repository = $drequest->getRepository();
16 $panel_uri = id(new DiffusionRepositoryBasicsManagementPanel())
17 ->setRepository($repository)
18 ->getPanelURI();
20 $doc_uri = PhabricatorEnv::getDoclink(
21 'Permanently Destroying Data');
23 return $this->newDialog()
24 ->setTitle(pht('Delete Repository'))
25 ->appendParagraph(
26 pht(
27 'To permanently destroy this repository, run this command from '.
28 'the command line:'))
29 ->appendCommand(
30 csprintf(
31 'phabricator/ $ ./bin/remove destroy %R',
32 $repository->getMonogram()))
33 ->appendParagraph(
34 pht(
35 'Repositories can not be permanently destroyed from the web '.
36 'interface. See %s in the documentation for more information.',
37 phutil_tag(
38 'a',
39 array(
40 'href' => $doc_uri,
41 'target' => '_blank',
43 pht('Permanently Destroying Data'))))
44 ->addCancelButton($panel_uri, pht('Close'));