|
14 | 14 | $hash = Utils::hash($path); |
15 | 15 |
|
16 | 16 | expect($compiled->render())->toEqualCollapsingWhitespace(join('', [ |
17 | | - '<?php $__blaze->ensureCompiled(\''. $path .'\', $__blaze->compiledPath.\'/'. $hash .'.php\'); ?> ', |
18 | | - '<?php require_once $__blaze->compiledPath.\'/'. $hash .'.php\'; ?> ', |
| 17 | + '<?php $__blaze->ensureRequired(\''. $path .'\', $__blaze->compiledPath.\'/'. $hash .'.php\'); ?> ', |
19 | 18 | '<?php $__blaze->pushData([\'type\' => \'text\',\'disabled\' => $disabled]); ?> ', |
20 | 19 | '<?php _'. $hash .'($__blaze, [\'type\' => \'text\',\'disabled\' => $disabled], [], [\'disabled\'], isset($this) ? $this : null); ?> ', |
21 | 20 | '<?php $__blaze->popData(); ?>', |
|
43 | 42 | $hash = Utils::hash($path); |
44 | 43 |
|
45 | 44 | expect($compiled->render())->toEqualCollapsingWhitespace(join('', [ |
46 | | - '<?php $__blaze->ensureCompiled(\''. $path .'\', $__blaze->compiledPath.\'/'. $hash .'.php\'); ?> ', |
47 | | - '<?php require_once $__blaze->compiledPath.\'/'. $hash .'.php\'; ?> ', |
| 45 | + '<?php $__blaze->ensureRequired(\''. $path .'\', $__blaze->compiledPath.\'/'. $hash .'.php\'); ?> ', |
48 | 46 | '<?php $__attrs'. $hash .' = []; ?> ', |
49 | 47 | '<?php $__blaze->pushData($__attrs'. $hash .'); ?> ', |
50 | 48 | '<?php $slots'. $hash .' = []; ?> ', |
|
67 | 65 | '<?php $__resolved = $__blaze->resolve(\'flux::\' . card); ?> ', |
68 | 66 | '<?php $__blaze->pushData($attributes->all()); ?> ', |
69 | 67 | '<?php if ($__resolved !== false): ?> ', |
70 | | - '<?php require_once $__blaze->compiledPath . \'/\' . $__resolved . \'.php\'; ?> ', |
71 | 68 | '<?php (\'_\' . $__resolved)($__blaze, $attributes->all(), $__blaze->mergedComponentSlots(), [], isset($this) ? $this : null); ?> ', |
72 | 69 | '<?php else: ?> ', |
73 | 70 | '<flux:delegate-component component="card" /> ', |
|
0 commit comments