Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103154801
PhabricatorPassphraseApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 27, 17:43
Size
2 KB
Mime Type
text/x-php
Expires
Sat, Mar 1, 17:43 (2 d)
Engine
blob
Format
Raw Data
Handle
24506564
Attached To
rPH Phabricator
PhabricatorPassphraseApplication.php
View Options
<?php
final
class
PhabricatorPassphraseApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Passphrase'
);
}
public
function
getBaseURI
()
{
return
'/passphrase/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Credential Store'
);
}
public
function
getFontIcon
()
{
return
'fa-user-secret'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
97
\x
88"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Put your secrets in a lockbox.'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
canUninstall
()
{
return
false
;
}
public
function
getRoutes
()
{
return
array
(
'/K(?P<id>
\d
+)'
=>
'PassphraseCredentialViewController'
,
'/passphrase/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PassphraseCredentialListController'
,
'create/'
=>
'PassphraseCredentialCreateController'
,
'edit/(?:(?P<id>
\d
+)/)?'
=>
'PassphraseCredentialEditController'
,
'destroy/(?P<id>
\d
+)/'
=>
'PassphraseCredentialDestroyController'
,
'reveal/(?P<id>
\d
+)/'
=>
'PassphraseCredentialRevealController'
,
'public/(?P<id>
\d
+)/'
=>
'PassphraseCredentialPublicController'
,
'lock/(?P<id>
\d
+)/'
=>
'PassphraseCredentialLockController'
,
'conduit/(?P<id>
\d
+)/'
=>
'PassphraseCredentialConduitController'
,
),
);
}
public
function
getRemarkupRules
()
{
return
array
(
new
PassphraseRemarkupRule
(),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
PassphraseCredentialPHIDType
::
TYPECONST
,
);
}
protected
function
getCustomCapabilities
()
{
$policy_key
=
id
(
new
PassphraseCredentialAuthorPolicyRule
())
->
getObjectPolicyFullKey
();
return
array
(
PassphraseDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created credentials.'
),
'template'
=>
PassphraseCredentialPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
'default'
=>
$policy_key
,
),
PassphraseDefaultEditCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created credentials.'
),
'template'
=>
PassphraseCredentialPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
'default'
=>
$policy_key
,
),
);
}
}
Event Timeline
Log In to Comment