Skip to content

Commit

Permalink
Drop unneeded LocalServerObjectCache dependency
Browse files Browse the repository at this point in the history
Drop BagOStuff $localServerObjectCache .

Bug: lakejason0#32
Change-Id: I63a72af01f19eaf75d65dccea8d7134afef9e1d3
  • Loading branch information
MXP2095onetechguy authored and winstonsung committed Jan 27, 2024
1 parent 0c690f9 commit 3682152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES-1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ risk!
* Removed unnecessary modules.
* Fixed CodeMirror glitch.
* (issue #26) Removed unneeded `wp` prefix from `hide-if`.
* (issue #32) Fixed "access to private variable `$templateParser` of parent
class" in `SkinLakeus.php` by dropping unneeded
`BagOStuff $localServerObjectCache` dependency.
*

### Action API changes
Expand Down
13 changes: 0 additions & 13 deletions includes/SkinLakeus.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,11 @@

namespace MediaWiki\Skins\Lakeus;

use BagOStuff;
# use MediaWiki\Html\TemplateParser; // Namespaced in 1.40.0
# use MediaWiki\SiteStats\SiteStats; // Namespaced in 1.41.0
use SiteStats;
use SkinMustache;
use TemplateParser;

class SkinLakeus extends SkinMustache {
/**
* @param BagOStuff $localServerObjectCache
* @param array $options
*/
public function __construct( BagOStuff $localServerObjectCache, array $options ) {
parent::__construct( $options );

$this->templateParser = new TemplateParser( $this->options['templateDirectory'], $localServerObjectCache );
}

/**
* Extends the getTemplateData function to add a template key 'html-myskin-hello-world'
* which can be rendered in skin.mustache using {{{html-myskin-hello-world}}}
Expand Down
3 changes: 0 additions & 3 deletions skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@
"ValidSkinNames": {
"lakeus": {
"class": "MediaWiki\\Skins\\Lakeus\\SkinLakeus",
"services": [
"LocalServerObjectCache"
],
"args": [
{
"name": "lakeus",
Expand Down

0 comments on commit 3682152

Please sign in to comment.