Page MenuHomec4science

PhabricatorApplicationAuth.php
No OneTemporary

File Metadata

Created
Tue, Jan 21, 22:30

PhabricatorApplicationAuth.php

<?php
final class PhabricatorApplicationAuth extends PhabricatorApplication {
public function shouldAppearInLaunchView() {
return false;
}
public function canUninstall() {
return false;
}
public function buildMainMenuItems(
PhabricatorUser $user,
PhabricatorController $controller = null) {
$items = array();
if ($user->isLoggedIn()) {
$item = new PHUIListItemView();
$item->setName(pht('Log Out'));
$item->setIcon('power');
$item->setWorkflow(true);
$item->setHref('/logout/');
$item->setSelected(($controller instanceof PhabricatorLogoutController));
$items[] = $item;
}
return $items;
}
}

Event Timeline