mediawiki-extensions-Cite/src
Adam Wight a227395e3a Lazy instantiation of Cite
Only create a Cite object if we need one.  Never clearState, just
destroy and recreate later.

This makes it less likely that we leak state between parsers, and
saves memory and processing on pages without references.

It's also preparation to decouple Cite logic from state.

Change-Id: I3db517591f4131c23151c76c223af7419cc00ae9
2019-12-12 11:12:17 +01:00
..
Hooks Lazy instantiation of Cite 2019-12-12 11:12:17 +01:00
ResourceLoader Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
AnchorFormatter.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
Cite.php Lazy instantiation of Cite 2019-12-12 11:12:17 +01:00
ErrorReporter.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
FootnoteMarkFormatter.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
ReferenceMessageLocalizer.php Use messagelocalizer in CiteErrorReporter 2019-12-11 09:53:47 +01:00
ReferencesFormatter.php Rename two Cite… classes and clean up test setups 2019-12-12 08:48:02 +01:00
ReferenceStack.php Lazy instantiation of Cite 2019-12-12 11:12:17 +01:00