Changes to the use statements and some additions are done automatically via script This also updates @covers tag for the namespaced classes Change-Id: I859ba6d05018c99710b744e2becab432410d3bca
25 lines
508 B
PHP
25 lines
508 B
PHP
<?php
|
|
|
|
use MediaWiki\Content\Content;
|
|
|
|
class CustomDifferenceEngine extends DifferenceEngine {
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function generateContentDiffBody( Content $old, Content $new ) {
|
|
return $old->getText() . '|' . $new->getText();
|
|
}
|
|
|
|
public function showDiffStyle() {
|
|
$this->getOutput()->addModules( 'foo' );
|
|
}
|
|
|
|
public function getDiffBodyCacheKeyParams() {
|
|
$params = parent::getDiffBodyCacheKeyParams();
|
|
$params[] = 'foo';
|
|
return $params;
|
|
}
|
|
|
|
}
|