Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/editor/PhabricatorAuthSSHKeyEditor.php
| Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | final class PhabricatorAuthSSHKeyEditor | ||||
| protected function getMailSubjectPrefix() { | protected function getMailSubjectPrefix() { | ||||
| return pht('[SSH Key]'); | return pht('[SSH Key]'); | ||||
| } | } | ||||
| protected function getMailThreadID(PhabricatorLiskDAO $object) { | protected function getMailThreadID(PhabricatorLiskDAO $object) { | ||||
| return 'ssh-key-'.$object->getPHID(); | return 'ssh-key-'.$object->getPHID(); | ||||
| } | } | ||||
| protected function applyFinalEffects( | |||||
| PhabricatorLiskDAO $object, | |||||
| array $xactions) { | |||||
| // After making any change to an SSH key, drop the authfile cache so it | |||||
| // is regenerated the next time anyone authenticates. | |||||
| $cache = PhabricatorCaches::getMutableCache(); | |||||
| $authfile_key = PhabricatorAuthSSHKeyQuery::AUTHFILE_CACHEKEY; | |||||
| $cache->deleteKey($authfile_key); | |||||
| return $xactions; | |||||
| } | |||||
| protected function getMailTo(PhabricatorLiskDAO $object) { | protected function getMailTo(PhabricatorLiskDAO $object) { | ||||
| return $object->getObject()->getSSHKeyNotifyPHIDs(); | return $object->getObject()->getSSHKeyNotifyPHIDs(); | ||||
| } | } | ||||
| protected function getMailCC(PhabricatorLiskDAO $object) { | protected function getMailCC(PhabricatorLiskDAO $object) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||