Skip to content

Commit faecdd2

Browse files
committed
#5 allow dynamic component syntax
1 parent 7b119dc commit faecdd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/BladeFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Illuminate\Support\Str;
1212
use Illuminate\Support\Facades\View;
1313
use Illuminate\View\Compilers\BladeCompiler;
14+
use Illuminate\View\DynamicComponent;
1415
use Illuminate\View\Engines\CompilerEngine;
1516
use Illuminate\View\Engines\EngineResolver;
1617
use Illuminate\View\FileViewFinder;
@@ -64,6 +65,8 @@ public static function getFacadeAccessor()
6465
$config->set('view.compiled', $pathToCompiledTemplates);
6566
$container['config'] = $config;
6667

68+
$bladeCompiler->component('dynamic-component', DynamicComponent::class);
69+
6770
// Use Kirby’s internal uuid() helper function instead of
6871
// ramsey/uuid to avoid installation of several additional
6972
// dependencies.

0 commit comments

Comments
 (0)