File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ final class StimulusHelper
27
27
public function __construct (?Environment $ twig )
28
28
{
29
29
// Twig needed just for its escaping mechanism
30
- $ this ->twig = $ twig ?? new Environment (new ArrayLoader ());
30
+ $ this ->twig = $ twig ?? new Environment (new ArrayLoader (), [
31
+ 'use_yield ' => true ,
32
+ ]);
31
33
}
32
34
33
35
public function createStimulusAttributes (): StimulusAttributes
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ final class StimulusAttributesTest extends TestCase
24
24
25
25
protected function setUp (): void
26
26
{
27
- $ this ->stimulusAttributes = new StimulusAttributes (new Environment (new ArrayLoader ()));
27
+ $ this ->stimulusAttributes = new StimulusAttributes (new Environment (new ArrayLoader (), [
28
+ 'use_yield ' => true ,
29
+ ]));
28
30
}
29
31
30
32
public function testAddAction (): void
You can’t perform that action at this time.
0 commit comments