Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/revoker/PhabricatorAuthRevoker.php
12256 views
1
<?php
2
3
abstract class PhabricatorAuthRevoker
4
extends Phobject {
5
6
private $viewer;
7
8
abstract public function revokeAllCredentials();
9
abstract public function revokeCredentialsFrom($object);
10
11
abstract public function getRevokerName();
12
abstract public function getRevokerDescription();
13
14
public function getRevokerNextSteps() {
15
return null;
16
}
17
18
public function setViewer(PhabricatorUser $viewer) {
19
$this->viewer = $viewer;
20
return $this;
21
}
22
23
public function getViewer() {
24
return $this->viewer;
25
}
26
27
final public function getRevokerKey() {
28
return $this->getPhobjectClassConstant('REVOKERKEY');
29
}
30
31
final public static function getAllRevokers() {
32
return id(new PhutilClassMapQuery())
33
->setAncestorClass(__CLASS__)
34
->setUniqueMethod('getRevokerKey')
35
->execute();
36
}
37
38
}
39
40