Add AbstractBlock parent class for Block
authorThalia <thalia.e.chan@googlemail.com>
Tue, 7 May 2019 14:46:44 +0000 (09:46 -0500)
committerThalia <thalia.e.chan@googlemail.com>
Tue, 7 May 2019 16:23:46 +0000 (11:23 -0500)
commit944bbfe0561bfbb22fb4c4a5334fa0fedd4640b7
tree2ae62615ff181307a32e77a15e75f4f6a6941fc3
parent82311f8c2c79bc469cae14e17546fd79d3541b76
Add AbstractBlock parent class for Block

This anticipates I83bceb5e5, which refactors Block into different
classes: Block (for blocks stored in the database), SystemBlock
(for temporary blocks), and AbstractBlock (the parent class).

Block should be become a deprecated alias of DatabaseBlock.

This adds an empty AbstractBlock parent class, and makes Block
extend AbstractBlock, but leaves it otherwise unchanged. This is
to allow typehints to be updated, to avoid a breaking change.

Bug: T222737
Change-Id: I3cf78cf77ccf492dadf53e479f81891961021469
includes/Block.php
includes/block/AbstractBlock.php [new file with mode: 0644]