silverstripe-framework/src/Core/Flushable.php

23 lines
564 B
PHP
Raw Permalink Normal View History

<?php
namespace SilverStripe\Core;
use SilverStripe\Control\Middleware\FlushMiddleware;
/**
* Provides an interface for classes to implement their own flushing functionality
* whenever flush=1 is requested.
*/
2016-11-29 00:31:16 +01:00
interface Flushable
{
2016-11-29 00:31:16 +01:00
/**
* This function is triggered early in the request if the "flush" query
* parameter has been set. Each class that implements Flushable implements
* this function which looks after it's own specific flushing functionality.
*
* @see FlushMiddleware
2016-11-29 00:31:16 +01:00
*/
public static function flush();
}