Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
refactor: replace blade service
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink committed Mar 1, 2024
1 parent bb41edf commit 4de1b89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/php/Helper/Blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace ProjectManagerIntegration\Helper;

use BadFunctionCallException;
use ComponentLibrary\Init as ComponentLibraryInit;

class Blade
{
Expand All @@ -21,6 +22,10 @@ public static function render(string $view, array $data): string
);
}

return \render_blade_view($view, $data, $viewPaths);
$componentLibrary = new ComponentLibraryInit([]);
$bladeService = $componentLibrary->getEngine();
$markup = $bladeService->makeView($view, $data, [], $viewPaths)->render();

return $markup;
}
}

0 comments on commit 4de1b89

Please sign in to comment.