Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / repository / xaction / PhabricatorRepositoryEnormousTransaction.php
blobaae18ba8ff9c37ab8981d2327409c1afc3f9c2af
1 <?php
3 final class PhabricatorRepositoryEnormousTransaction
4 extends PhabricatorRepositoryTransactionType {
6 const TRANSACTIONTYPE = 'repo:enormous';
8 public function generateOldValue($object) {
9 return $object->shouldAllowEnormousChanges();
12 public function applyInternalEffects($object, $value) {
13 $object->setDetail('allow-enormous-changes', $value);
16 public function getTitle() {
17 $new = $this->getNewValue();
19 if ($new) {
20 return pht(
21 '%s disabled protection against enormous changes.',
22 $this->renderAuthor());
23 } else {
24 return pht(
25 '%s enabled protection against enormous changes.',
26 $this->renderAuthor());