misc_pterodactyl-panel/app/Http/Controllers/Admin/BaseController.php

32 lines
660 B
PHP
Raw Permalink Normal View History

<?php
2016-12-07 22:46:38 +00:00
namespace Pterodactyl\Http\Controllers\Admin;
use Illuminate\View\View;
2016-12-07 22:46:38 +00:00
use Pterodactyl\Http\Controllers\Controller;
2017-08-24 02:34:11 +00:00
use Pterodactyl\Services\Helpers\SoftwareVersionService;
class BaseController extends Controller
{
2017-08-24 02:34:11 +00:00
/**
* @var \Pterodactyl\Services\Helpers\SoftwareVersionService
*/
private $version;
2017-08-24 02:34:11 +00:00
/**
* BaseController constructor.
*/
public function __construct(SoftwareVersionService $version)
{
2017-08-24 02:34:11 +00:00
$this->version = $version;
}
2017-03-19 23:36:50 +00:00
/**
* Return the admin index view.
*/
public function index(): View
{
2017-08-24 02:34:11 +00:00
return view('admin.index', ['version' => $this->version]);
}
}