Path: blob/master/src/applications/diffusion/controller/DiffusionRepositoryEditDeleteController.php
12242 views
<?php12final class DiffusionRepositoryEditDeleteController3extends DiffusionRepositoryManageController {45public function handleRequest(AphrontRequest $request) {6$response = $this->loadDiffusionContextForEdit();7if ($response) {8return $response;9}1011$viewer = $this->getViewer();12$drequest = $this->getDiffusionRequest();13$repository = $drequest->getRepository();1415$panel_uri = id(new DiffusionRepositoryBasicsManagementPanel())16->setRepository($repository)17->getPanelURI();1819$doc_uri = PhabricatorEnv::getDoclink(20'Permanently Destroying Data');2122return $this->newDialog()23->setTitle(pht('Delete Repository'))24->appendParagraph(25pht(26'To permanently destroy this repository, run this command from '.27'the command line:'))28->appendCommand(29csprintf(30'phabricator/ $ ./bin/remove destroy %R',31$repository->getMonogram()))32->appendParagraph(33pht(34'Repositories can not be permanently destroyed from the web '.35'interface. See %s in the documentation for more information.',36phutil_tag(37'a',38array(39'href' => $doc_uri,40'target' => '_blank',41),42pht('Permanently Destroying Data'))))43->addCancelButton($panel_uri, pht('Close'));44}4546}474849