mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-30 07:22:53 +00:00
b1cc92b9a1
The namespace change avoids a conflict with the existing Parsoid implementation in Wikimedia\Parsoid\Ext\Cite and matches the current Cite codebase better. We also need to add some phan stubs to allow Cite to use Parsoid's generic DOM implementation classes, and some type assertions to satisfy phan. Bug: T354215 Change-Id: Ic904601b29555c9485a804f131061f207970ddd4
22 lines
1.4 KiB
PHP
22 lines
1.4 KiB
PHP
<?php
|
|
# For the purpose of phan, we're always using IDLeDOM. That avoids the
|
|
# type variance/co-variance issues involved in teaching phan about our
|
|
# subclasses, and also keeps us from accessing any private implementation
|
|
# details of Dodo.
|
|
#
|
|
# This list should match the one in DomImpl.php in the root.
|
|
|
|
class_alias( 'Wikimedia\\IDLeDOM\\Attr', 'Wikimedia\\Parsoid\\DOM\\Attr' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\CharacterData', 'Wikimedia\\Parsoid\\DOM\\CharacterData' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\Comment', 'Wikimedia\\Parsoid\\DOM\\Comment' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\Document', 'Wikimedia\\Parsoid\\DOM\\Document' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\DocumentFragment', 'Wikimedia\\Parsoid\\DOM\\DocumentFragment' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\DocumentType', 'Wikimedia\\Parsoid\\DOM\\DocumentType' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\DOMException', 'Wikimedia\\Parsoid\\DOM\\DOMException' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\DOMParser', 'Wikimedia\\Parsoid\\DOM\\DOMParser' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\Element', 'Wikimedia\\Parsoid\\DOM\\Element' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\Node', 'Wikimedia\\Parsoid\\DOM\\Node' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\NodeList', 'Wikimedia\\Parsoid\\DOM\\NodeList' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\ProcessingInstruction', 'Wikimedia\\Parsoid\\DOM\\ProcessingInstruction' );
|
|
class_alias( 'Wikimedia\\IDLeDOM\\Text', 'Wikimedia\\Parsoid\\DOM\\Text' );
|