* Check for null version from upstream #575 * Fix for pre-release version numbering * Move popup to right * Split get/generate build ID #575
This commit is contained in:
22
app/Http/Composers/VersionComposer.php
Normal file
22
app/Http/Composers/VersionComposer.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Composers;
|
||||
|
||||
use App\Services\VersionService;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class VersionComposer
|
||||
{
|
||||
protected $versionSvc;
|
||||
|
||||
public function __construct(VersionService $versionSvc)
|
||||
{
|
||||
$this->versionSvc = $versionSvc;
|
||||
}
|
||||
|
||||
public function compose(View $view)
|
||||
{
|
||||
$view->with('version', $this->versionSvc->getCurrentVersion(false));
|
||||
$view->with('version_full', $this->versionSvc->getCurrentVersion(true));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user