silverstripe-framework/src/Control/NullHTTPRequest.php

18 lines
407 B
PHP
Raw Normal View History

<?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.
*/
2016-11-29 00:31:16 +01:00
class NullHTTPRequest extends HTTPRequest
{
2014-08-15 08:53:05 +02:00
2016-11-29 00:31:16 +01:00
public function __construct()
{
parent::__construct(null, null);
}
}