1
0
mirror of https://github.com/flarum/core.git synced 2025-10-28 14:06:30 +01:00
Files
php-flarum/src/Update/Controller/IndexController.php
Franz Liedke d492579638 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-28 00:16:50 +00:00

44 lines
953 B
PHP

<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Update\Controller;
use Flarum\Http\Controller\AbstractHtmlController;
use Illuminate\Contracts\View\Factory;
use Psr\Http\Message\ServerRequestInterface as Request;
class IndexController extends AbstractHtmlController
{
/**
* @var Factory
*/
protected $view;
/**
* @param Factory $view
*/
public function __construct(Factory $view)
{
$this->view = $view;
}
/**
* @param Request $request
* @return \Psr\Http\Message\ResponseInterface
*/
public function render(Request $request)
{
$view = $this->view->make('flarum.update::app')->with('title', 'Update Flarum');
$view->with('content', $this->view->make('flarum.update::update'));
return $view;
}
}