Differential D20655 Diff 49271 src/applications/auth/storage/PhabricatorAuthProviderConfigTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthProviderConfigTransaction.php
| <?php | <?php | ||||
| final class PhabricatorAuthProviderConfigTransaction | final class PhabricatorAuthProviderConfigTransaction | ||||
| extends PhabricatorApplicationTransaction { | extends PhabricatorApplicationTransaction { | ||||
| const TYPE_ENABLE = 'config:enable'; | const TYPE_ENABLE = 'config:enable'; | ||||
| const TYPE_LOGIN = 'config:login'; | const TYPE_LOGIN = 'config:login'; | ||||
| const TYPE_REGISTRATION = 'config:registration'; | const TYPE_REGISTRATION = 'config:registration'; | ||||
| const TYPE_LINK = 'config:link'; | const TYPE_LINK = 'config:link'; | ||||
| const TYPE_UNLINK = 'config:unlink'; | const TYPE_UNLINK = 'config:unlink'; | ||||
| const TYPE_TRUST_EMAILS = 'config:trustEmails'; | const TYPE_TRUST_EMAILS = 'config:trustEmails'; | ||||
| const TYPE_AUTO_LOGIN = 'config:autoLogin'; | const TYPE_AUTO_LOGIN = 'config:autoLogin'; | ||||
| const TYPE_PROPERTY = 'config:property'; | const TYPE_PROPERTY = 'config:property'; | ||||
| const PROPERTY_KEY = 'auth:property'; | const PROPERTY_KEY = 'auth:property'; | ||||
| private $provider; | |||||
| public function setProvider(PhabricatorAuthProvider $provider) { | |||||
| $this->provider = $provider; | |||||
| return $this; | |||||
| } | |||||
| public function getProvider() { | public function getProvider() { | ||||
| return $this->provider; | return $this->getObject()->getProvider(); | ||||
| } | } | ||||
| public function getApplicationName() { | public function getApplicationName() { | ||||
| return 'auth'; | return 'auth'; | ||||
| } | } | ||||
| public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
| return PhabricatorAuthAuthProviderPHIDType::TYPECONST; | return PhabricatorAuthAuthProviderPHIDType::TYPECONST; | ||||
| ▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines | |||||