1
0
mirror of https://github.com/flarum/core.git synced 2025-10-17 17:56:14 +02:00
Files
php-flarum/src/Api/Request.php
2015-05-07 08:22:15 +09:30

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;
}
}