silverstripe-framework/Control/NullHTTPRequest.php
2016-09-09 18:43:05 +12:00

17 lines
392 B
PHP

<?php
namespace SilverStripe\Control;
/**
* 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.
*/
class NullHTTPRequest extends HTTPRequest {
public function __construct() {
parent::__construct(null, null);
}
}