mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 18:52:42 +01:00
46881c4ce5
Summary: Ref T7673. This is really just so I can force admin.phacility.com logout when you log out of an instance, but there are a few other things we could move here eventually, like the WILLREGISTERUSER event. Test Plan: Logged out of an instance, got logged out of parent (see next change). Reviewers: chad Reviewed By: chad Maniphest Tasks: T7673 Differential Revision: https://secure.phabricator.com/D15629
23 lines
524 B
PHP
23 lines
524 B
PHP
<?php
|
|
|
|
abstract class PhabricatorAuthSessionEngineExtension
|
|
extends Phobject {
|
|
|
|
final public function getExtensionKey() {
|
|
return $this->getPhobjectClassConstant('EXTENSIONKEY');
|
|
}
|
|
|
|
final public static function getAllExtensions() {
|
|
return id(new PhutilClassMapQuery())
|
|
->setAncestorClass(__CLASS__)
|
|
->setUniqueMethod('getExtensionKey')
|
|
->execute();
|
|
}
|
|
|
|
abstract public function getExtensionName();
|
|
|
|
public function didLogout(PhabricatorUser $user, array $sessions) {
|
|
return;
|
|
}
|
|
|
|
}
|