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