wiki.techinc.nl/includes/Output/Hook/AfterFinalPageOutputHook.php
Umherirrender 1951aea6b8 Fix various version mention for class_alias
Versions are changed in 8e940c4f21,
but that makes the version wrong

Follow-Up: I7f85d931d3b79da23e87b4e5692b2e14be8fcaa0
Change-Id: Iae43725b8e0fffc4d44bf57f6227334b41290bd9
2024-07-05 18:39:49 +02:00

30 lines
982 B
PHP

<?php
namespace MediaWiki\Output\Hook;
use MediaWiki\Output\OutputPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "AfterFinalPageOutput" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface AfterFinalPageOutputHook {
/**
* This hook is called nearly at the end of OutputPage::output() but
* before OutputPage::sendCacheControl() and final ob_end_flush() which
* will send the buffered output to the client. This allows for last-minute
* modification of the output within the buffer by using ob_get_clean().
*
* @since 1.35
*
* @param OutputPage $output The OutputPage object where output() was called
* @return void This hook must not abort, it must return no value
*/
public function onAfterFinalPageOutput( $output ): void;
}
/** @deprecated class alias since 1.42 */
class_alias( AfterFinalPageOutputHook::class, 'MediaWiki\Hook\AfterFinalPageOutputHook' );