1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-04-02 23:48:18 +02:00
phorge-phorge/src/applications/transactions/view/PhabricatorApplicationTransactionJSONDiffDetailView.php
Austin McKinley 6b9f4a918b Modularize PhabricatorEditEngineConfigurationTransaction
Summary: Ref T13319. Ref PHI1302. Migrate `PhabricatorEditEngineConfigurationTransaction` to modular transactions and add some additional transaction rendering to make these edits less opaque.

Test Plan: Hit all the form edit controllers, viewed resulting transaction timeline.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T13319

Differential Revision: https://secure.phabricator.com/D20595
2019-06-20 16:25:21 -07:00

17 lines
435 B
PHP

<?php
final class PhabricatorApplicationTransactionJSONDiffDetailView
extends PhabricatorApplicationTransactionDetailView {
public function setNew($new_object) {
$json = new PhutilJSON();
$this->setNewText($json->encodeFormatted($new_object));
return $this;
}
public function setOld($old_object) {
$json = new PhutilJSON();
$this->setOldText($json->encodeFormatted($old_object));
return $this;
}
}