silverstripe-framework/src/Control/NullHTTPRequest.php
Sam Minnee 7a10c194bd NEW: Move code files into src/ folder.
This updates framework to be more in keeping with PHP conventions.
2016-11-01 13:37:24 +13: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);
}
}