Merge "Add release notes about service injection in special pages"
This commit is contained in:
commit
63e97fb927
1 changed files with 7 additions and 0 deletions
|
|
@ -297,6 +297,13 @@ because of Phabricator reports.
|
|||
and ::checkExistingRevision() were marked as @internal to allow for
|
||||
breaking changes. They are no longer safe to call. The methods were
|
||||
unused outside of MediaWiki core.
|
||||
* Special pages provided by core now using service injection via constructor.
|
||||
When extending a special page the call to grandparent constructor
|
||||
("SpecialPage::__construct()") in the sub class breaks the extension special
|
||||
page, because the fallback code in the parent constructor cannot set the
|
||||
services as needed. Be sure to call the parent constructor when extending
|
||||
core special pages. The extending of core special pages is not part of the
|
||||
stable interface and should be avoided.
|
||||
* Language::getExtraUserToggles and ::viewPrevNext, deprecated in 1.34, have
|
||||
been removed.
|
||||
* StreamFile::send404Message and ::parseRange, deprecated in 1.34, have been
|
||||
|
|
|
|||
Loading…
Reference in a new issue