mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
26 lines
501 B
PHP
26 lines
501 B
PHP
<?php namespace Flarum\Api;
|
|
|
|
use Flarum\Support\Actor;
|
|
use Illuminate\Http\Request as IlluminateRequest;
|
|
|
|
class Request
|
|
{
|
|
public $input;
|
|
|
|
public $actor;
|
|
|
|
public $http;
|
|
|
|
public function __construct(array $input, Actor $actor = null, IlluminateRequest $http = null)
|
|
{
|
|
$this->input = $input;
|
|
$this->actor = $actor;
|
|
$this->http = $http;
|
|
}
|
|
|
|
public function get($key, $default = null)
|
|
{
|
|
return array_get($this->input, $key, $default);
|
|
}
|
|
}
|