Skip to content

Commit

Permalink
fix!: use BladeService from ComponentLibrary (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink authored Feb 20, 2024
1 parent 1335056 commit 1e2df9f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Public.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@
// Public functions


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

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

]);

$bladeEngine = $init->getEngine();

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

0 comments on commit 1e2df9f

Please sign in to comment.