Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F442672
PhortuneLandingController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
797 B
Referenced Files
None
Subscribers
None
PhortuneLandingController.php
View Options
<?php
final
class
PhortuneLandingController
extends
PhortuneController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$accounts
=
id
(
new
PhortuneAccountQuery
())
->
setViewer
(
$user
)
->
withMemberPHIDs
(
array
(
$user
->
getPHID
()))
->
execute
();
if
(!
$accounts
)
{
$account
=
PhortuneAccount
::
createNewAccount
(
$user
,
PhabricatorContentSource
::
newFromRequest
(
$request
));
$accounts
=
array
(
$account
);
}
if
(
count
(
$accounts
)
==
1
)
{
$account
=
head
(
$accounts
);
$next_uri
=
$this
->
getApplicationURI
(
$account
->
getID
().
'/'
);
}
else
{
$next_uri
=
$this
->
getApplicationURI
(
'account/'
);
}
return
id
(
new
AphrontRedirectResponse
())->
setURI
(
$next_uri
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 9:21 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64675
Default Alt Text
PhortuneLandingController.php (797 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment