Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92686272
PhabricatorAuthMessageEditController.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
Fri, Nov 22, 18:39
Size
821 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 18:39 (2 d)
Engine
blob
Format
Raw Data
Handle
22487144
Attached To
rPH Phabricator
PhabricatorAuthMessageEditController.php
View Options
<?php
final
class
PhabricatorAuthMessageEditController
extends
PhabricatorAuthMessageController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$this
->
requireApplicationCapability
(
AuthManageProvidersCapability
::
CAPABILITY
);
$engine
=
id
(
new
PhabricatorAuthMessageEditEngine
())
->
setController
(
$this
);
$id
=
$request
->
getURIData
(
'id'
);
if
(!
$id
)
{
$message_key
=
$request
->
getStr
(
'messageKey'
);
$message_types
=
PhabricatorAuthMessageType
::
getAllMessageTypes
();
$message_type
=
idx
(
$message_types
,
$message_key
);
if
(!
$message_type
)
{
return
new
Aphront404Response
();
}
$engine
->
addContextParameter
(
'messageKey'
,
$message_key
)
->
setMessageType
(
$message_type
);
}
return
$engine
->
buildResponse
();
}
}
Event Timeline
Log In to Comment