Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / paste / engineextension / PhabricatorPasteContentSearchEngineAttachment.php
blob34addc663d23a65136ae4b117291b2db8d46ed4c
1 <?php
3 final class PhabricatorPasteContentSearchEngineAttachment
4 extends PhabricatorSearchEngineAttachment {
6 public function getAttachmentName() {
7 return pht('Paste Content');
10 public function getAttachmentDescription() {
11 return pht('Get the full content for each paste.');
14 public function willLoadAttachmentData($query, $spec) {
15 $query->needRawContent(true);
18 public function getAttachmentForObject($object, $data, $spec) {
19 return array(
20 'content' => $object->getRawContent(),