Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F29856980
PhabricatorAuthProviderConfigController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
PhabricatorAuthProviderConfigController.php
View Options
<?php
abstract
class
PhabricatorAuthProviderConfigController
extends
PhabricatorAuthController
{
public
function
shouldRequireAdmin
()
{
return
true
;
}
protected
function
buildSideNavView
(
$for_app
=
false
)
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addLabel
(
pht
(
'Create'
));
$nav
->
addFilter
(
''
,
pht
(
'Add Authentication Provider'
),
$this
->
getApplicationURI
(
'/config/new/'
));
}
id
(
new
PhabricatorAuthProviderConfigSearchEngine
())
->
setViewer
(
$this
->
getRequest
()->
getUser
())
->
addNavigationItems
(
$nav
->
getMenu
());
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
$for_app
=
true
)->
getMenu
();
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Add Authentication Provider'
))
->
setHref
(
$this
->
getApplicationURI
(
'/config/new/'
))
->
setIcon
(
'create'
));
return
$crumbs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Oct 16, 4:50 AM (1 d, 19 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e6/55/fd62c2e49014976a3bdb1071f6ad
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment