Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F537777
DiffusionRepositoryEditDeleteController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
DiffusionRepositoryEditDeleteController.php
View Options
<?php
final
class
DiffusionRepositoryEditDeleteController
extends
DiffusionRepositoryManageController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
// This is just an information box, telling admins to use CLI for destroy.
// To increase shared knowledge about how Phorge works, we can safely show
// it to those who see the repository, not just those who can edit it.
$response
=
$this
->
loadDiffusionContext
();
if
(
$response
)
{
return
$response
;
}
$viewer
=
$this
->
getViewer
();
$drequest
=
$this
->
getDiffusionRequest
();
$repository
=
$drequest
->
getRepository
();
$panel_uri
=
id
(
new
DiffusionRepositoryBasicsManagementPanel
())
->
setRepository
(
$repository
)
->
getPanelURI
();
$doc_uri
=
PhabricatorEnv
::
getDoclink
(
'Permanently Destroying Data'
);
return
$this
->
newDialog
()
->
setTitle
(
pht
(
'Delete Repository'
))
->
appendParagraph
(
pht
(
'To permanently destroy this repository, run this command from '
.
'the command line:'
))
->
appendCommand
(
csprintf
(
'%s $ ./bin/remove destroy %R'
,
PlatformSymbols
::
getPlatformServerPath
(),
$repository
->
getMonogram
()))
->
appendParagraph
(
pht
(
'Repositories can not be permanently destroyed from the web '
.
'interface. See %s in the documentation for more information.'
,
phutil_tag
(
'a'
,
array
(
'href'
=>
$doc_uri
,
'target'
=>
'_blank'
,
),
pht
(
'Permanently Destroying Data'
))))
->
addCancelButton
(
$panel_uri
,
pht
(
'Close'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 8:19 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
119862
Default Alt Text
DiffusionRepositoryEditDeleteController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment