silverstripe-framework/core/control/NullHTTPRequest.php
2010-12-16 04:06:13 +00:00

16 lines
400 B
PHP

<?php
/**
* Implements the "Null Object" pattern for a missing http request.
* Set on controllers on construction time, typically overwritten
* by {@link Controller->handleRequest()} and {@link Controller->handleAction()} later on.
*
* @param sapphire
* @subpackage control
*/
class NullHTTPRequest extends SS_HTTPRequest {
function __construct() {
parent::__construct(null, null);
}
}