Skip to content

Commit

Permalink
fix!: use new blade package (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink authored Feb 20, 2024
1 parent eb44d19 commit 0e1e556
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Public.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

// Public functions


use ComponentLibrary\Init as ComponentLibraryInit;
use HelsingborgStad\GlobalBladeService\GlobalBladeService;

if (!function_exists('disturbance_render_blade_view')) {
function disturbance_render_blade_view($view, $data = [], $compress = true)
{
$init = new ComponentLibraryInit([
$bladeEngine = GlobalBladeService::getInstance([
APIALARMINTEGRATION_MODULE_VIEW_PATH,
]);

$bladeEngine = $init->getEngine();

try {
$markup = $bladeEngine->make(
$markup = $bladeEngine->makeView(
$view,
array_merge(
$data,
Expand Down

0 comments on commit 0e1e556

Please sign in to comment.