Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / diffusion / controller / DiffusionRepositoryManageController.php
blobb04e72960b23fb2728c97b10edd2f0d0bb8515c2
1 <?php
3 abstract class DiffusionRepositoryManageController
4 extends DiffusionController {
6 protected function buildApplicationCrumbs() {
7 $crumbs = parent::buildApplicationCrumbs();
9 if ($this->hasDiffusionRequest()) {
10 $drequest = $this->getDiffusionRequest();
11 $repository = $drequest->getRepository();
13 $crumbs->addTextCrumb(
14 $repository->getDisplayName(),
15 $repository->getURI());
17 $crumbs->addTextCrumb(
18 pht('Manage'),
19 $repository->getPathURI('manage/'));
22 return $crumbs;
25 public function newBox($title, $content, $action = null) {
26 $header = id(new PHUIHeaderView())
27 ->setHeader($title);
29 if ($action) {
30 $header->addActionItem($action);
33 $view = id(new PHUIObjectBoxView())
34 ->setHeader($header)
35 ->appendChild($content)
36 ->setBackground(PHUIObjectBoxView::WHITE_CONFIG);
38 return $view;