mirror of
https://github.com/flarum/core.git
synced 2025-10-17 17:56:14 +02:00
31 lines
569 B
PHP
31 lines
569 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);
|
|
}
|
|
|
|
public function all()
|
|
{
|
|
return $this->input;
|
|
}
|
|
}
|