Differential D19780 Diff 47269 src/applications/repository/storage/PhabricatorRepositoryPushEvent.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryPushEvent.php
| Show All 13 Lines | final class PhabricatorRepositoryPushEvent | ||||
| protected $requestIdentifier; | protected $requestIdentifier; | ||||
| protected $remoteAddress; | protected $remoteAddress; | ||||
| protected $remoteProtocol; | protected $remoteProtocol; | ||||
| protected $rejectCode; | protected $rejectCode; | ||||
| protected $rejectDetails; | protected $rejectDetails; | ||||
| protected $writeWait; | protected $writeWait; | ||||
| protected $readWait; | protected $readWait; | ||||
| protected $hostWait; | protected $hostWait; | ||||
| protected $hookWait; | |||||
| private $repository = self::ATTACHABLE; | private $repository = self::ATTACHABLE; | ||||
| private $logs = self::ATTACHABLE; | private $logs = self::ATTACHABLE; | ||||
| public static function initializeNewEvent(PhabricatorUser $viewer) { | public static function initializeNewEvent(PhabricatorUser $viewer) { | ||||
| return id(new PhabricatorRepositoryPushEvent()) | return id(new PhabricatorRepositoryPushEvent()) | ||||
| ->setPusherPHID($viewer->getPHID()); | ->setPusherPHID($viewer->getPHID()); | ||||
| } | } | ||||
| protected function getConfiguration() { | protected function getConfiguration() { | ||||
| return array( | return array( | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
| self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
| 'requestIdentifier' => 'bytes12?', | 'requestIdentifier' => 'bytes12?', | ||||
| 'remoteAddress' => 'ipaddress?', | 'remoteAddress' => 'ipaddress?', | ||||
| 'remoteProtocol' => 'text32?', | 'remoteProtocol' => 'text32?', | ||||
| 'rejectCode' => 'uint32', | 'rejectCode' => 'uint32', | ||||
| 'rejectDetails' => 'text64?', | 'rejectDetails' => 'text64?', | ||||
| 'writeWait' => 'uint64?', | 'writeWait' => 'uint64?', | ||||
| 'readWait' => 'uint64?', | 'readWait' => 'uint64?', | ||||
| 'hostWait' => 'uint64?', | 'hostWait' => 'uint64?', | ||||
| 'hookWait' => 'uint64?', | |||||
| ), | ), | ||||
| self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
| 'key_repository' => array( | 'key_repository' => array( | ||||
| 'columns' => array('repositoryPHID'), | 'columns' => array('repositoryPHID'), | ||||
| ), | ), | ||||
| 'key_identifier' => array( | 'key_identifier' => array( | ||||
| 'columns' => array('requestIdentifier'), | 'columns' => array('requestIdentifier'), | ||||
| ), | ), | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||