Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<?php
/** * @group aphront */abstract class AphrontController extends Phobject {
private $request; private $currentApplication; private $delegatingController;
public function setDelegatingController( AphrontController $delegating_controller) { $this->delegatingController = $delegating_controller; return $this; }
public function getDelegatingController() { return $this->delegatingController; }
public function willBeginExecution() { return; }
public function willProcessRequest(array $uri_data) { return; }
public function didProcessRequest($response) { return $response; }
abstract public function processRequest();
final public function __construct(AphrontRequest $request) { $this->request = $request; }
final public function getRequest() { return $this->request; }
final public function delegateToController(AphrontController $controller) { $controller->setDelegatingController($this);
$application = $this->getCurrentApplication(); if ($application) { $controller->setCurrentApplication($application); }
return $controller->processRequest(); }
final public function setCurrentApplication( PhabricatorApplication $current_application) {
$this->currentApplication = $current_application; return $this; }
final public function getCurrentApplication() { return $this->currentApplication; }
}