master_template/app/Http/Controllers/Installer/RequirementsController.php

40 lines
916 B
PHP
Raw Normal View History

2024-06-11 06:31:24 +00:00
<?php
namespace App\Http\Controllers\Installer;
use Illuminate\Routing\Controller;
use App\Helpers\Installer\RequirementsChecker;
class RequirementsController extends Controller
{
/**
* @var RequirementsChecker
*/
protected $requirements;
/**
* @param RequirementsChecker $checker
*/
public function __construct(RequirementsChecker $checker)
{
$this->requirements = $checker;
}
/**
* Display the requirements page.
*
* @return \Illuminate\View\View
*/
public function requirements()
{
$phpSupportInfo = $this->requirements->checkPHPversion(
config('installer.core.minPhpVersion')
);
$requirements = $this->requirements->check(
config('installer.requirements')
);
return view('vendor.installer.requirements', compact('requirements', 'phpSupportInfo'));
}
}