Upgrade to php 8

This commit is contained in:
Aldarien
2023-02-10 15:12:30 +00:00
parent b6c0c90943
commit de6100a546
9 changed files with 25 additions and 14 deletions

View File

@ -1,7 +1,7 @@
<?php
namespace App\Service;
use Philo\Blade\Blade;
use eftec\bladeone\BladeOne;
class View
{
@ -14,14 +14,14 @@ class View
$this->views = config('locations.views');
$this->cache = config('locations.cache');
$this->blade = new Blade($this->views, $this->cache);
$this->blade = new BladeOne($this->views, $this->cache);
}
public function show($template, $vars = null)
{
if ($vars) {
return $this->blade->view()->make($template, $vars)->render();
return $this->blade->run($template, $vars);
}
return $this->blade->view()->make($template)->render();
return $this->blade->run($template);
}
}
?>

View File

@ -3,7 +3,7 @@
"description": "View module for my apps",
"type": "library",
"require": {
"philo/laravel-blade": "*",
"eftec/bladeone": "*",
"aldarien/contract": "*",
"aldarien/config": "*"
},