Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/engine/PhabricatorAuthSessionEngineExtension.php
12256 views
1
<?php
2
3
abstract class PhabricatorAuthSessionEngineExtension
4
extends Phobject {
5
6
final public function getExtensionKey() {
7
return $this->getPhobjectClassConstant('EXTENSIONKEY');
8
}
9
10
final public static function getAllExtensions() {
11
return id(new PhutilClassMapQuery())
12
->setAncestorClass(__CLASS__)
13
->setUniqueMethod('getExtensionKey')
14
->execute();
15
}
16
17
abstract public function getExtensionName();
18
19
public function didEstablishSession(PhabricatorAuthSessionInfo $info) {
20
return;
21
}
22
23
public function willServeRequestForUser(PhabricatorUser $user) {
24
return;
25
}
26
27
public function didLogout(PhabricatorUser $user, array $sessions) {
28
return;
29
}
30
31
}
32
33