2010-12-16 04:06:13 +00:00
|
|
|
<?php
|
2016-08-19 10:51:35 +12:00
|
|
|
|
|
|
|
namespace SilverStripe\Control;
|
|
|
|
|
2010-12-16 04:06:13 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2016-09-09 18:43:05 +12:00
|
|
|
class NullHTTPRequest extends HTTPRequest {
|
2010-12-16 04:06:13 +00:00
|
|
|
|
2012-09-19 12:07:39 +02:00
|
|
|
public function __construct() {
|
2010-12-16 04:06:13 +00:00
|
|
|
parent::__construct(null, null);
|
|
|
|
}
|
2014-08-15 18:53:05 +12:00
|
|
|
|
2012-03-24 16:38:57 +13:00
|
|
|
}
|