1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,69 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\View\Compilers\Concerns; |
|
4 |
- |
|
5 |
-trait CompilesComponents |
|
6 |
-{ |
|
7 |
- /** |
|
8 |
- * Compile the component statements into valid PHP. |
|
9 |
- * |
|
10 |
- * @param string $expression |
|
11 |
- * @return string |
|
12 |
- */ |
|
13 |
- protected function compileComponent($expression) |
|
14 |
- { |
|
15 |
- return "<?php \$__env->startComponent{$expression}; ?>"; |
|
16 |
- } |
|
17 |
- |
|
18 |
- /** |
|
19 |
- * Compile the end-component statements into valid PHP. |
|
20 |
- * |
|
21 |
- * @return string |
|
22 |
- */ |
|
23 |
- protected function compileEndComponent() |
|
24 |
- { |
|
25 |
- return '<?php echo $__env->renderComponent(); ?>'; |
|
26 |
- } |
|
27 |
- |
|
28 |
- /** |
|
29 |
- * Compile the slot statements into valid PHP. |
|
30 |
- * |
|
31 |
- * @param string $expression |
|
32 |
- * @return string |
|
33 |
- */ |
|
34 |
- protected function compileSlot($expression) |
|
35 |
- { |
|
36 |
- return "<?php \$__env->slot{$expression}; ?>"; |
|
37 |
- } |
|
38 |
- |
|
39 |
- /** |
|
40 |
- * Compile the end-slot statements into valid PHP. |
|
41 |
- * |
|
42 |
- * @return string |
|
43 |
- */ |
|
44 |
- protected function compileEndSlot() |
|
45 |
- { |
|
46 |
- return '<?php $__env->endSlot(); ?>'; |
|
47 |
- } |
|
48 |
- |
|
49 |
- /** |
|
50 |
- * Compile the component-first statements into valid PHP. |
|
51 |
- * |
|
52 |
- * @param string $expression |
|
53 |
- * @return string |
|
54 |
- */ |
|
55 |
- protected function compileComponentFirst($expression) |
|
56 |
- { |
|
57 |
- return "<?php \$__env->startComponentFirst{$expression}; ?>"; |
|
58 |
- } |
|
59 |
- |
|
60 |
- /** |
|
61 |
- * Compile the end-component-first statements into valid PHP. |
|
62 |
- * |
|
63 |
- * @return string |
|
64 |
- */ |
|
65 |
- protected function compileEndComponentFirst() |
|
66 |
- { |
|
67 |
- return $this->compileEndComponent(); |
|
68 |
- } |
|
69 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,69 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\View\Compilers\Concerns; |
|
4 |
+ |
|
5 |
+trait CompilesComponents |
|
6 |
+{ |
|
7 |
+ /** |
|
8 |
+ * Compile the component statements into valid PHP. |
|
9 |
+ * |
|
10 |
+ * @param string $expression |
|
11 |
+ * @return string |
|
12 |
+ */ |
|
13 |
+ protected function compileComponent($expression) |
|
14 |
+ { |
|
15 |
+ return "<?php \$__env->startComponent{$expression}; ?>"; |
|
16 |
+ } |
|
17 |
+ |
|
18 |
+ /** |
|
19 |
+ * Compile the end-component statements into valid PHP. |
|
20 |
+ * |
|
21 |
+ * @return string |
|
22 |
+ */ |
|
23 |
+ protected function compileEndComponent() |
|
24 |
+ { |
|
25 |
+ return '<?php echo $__env->renderComponent(); ?>'; |
|
26 |
+ } |
|
27 |
+ |
|
28 |
+ /** |
|
29 |
+ * Compile the slot statements into valid PHP. |
|
30 |
+ * |
|
31 |
+ * @param string $expression |
|
32 |
+ * @return string |
|
33 |
+ */ |
|
34 |
+ protected function compileSlot($expression) |
|
35 |
+ { |
|
36 |
+ return "<?php \$__env->slot{$expression}; ?>"; |
|
37 |
+ } |
|
38 |
+ |
|
39 |
+ /** |
|
40 |
+ * Compile the end-slot statements into valid PHP. |
|
41 |
+ * |
|
42 |
+ * @return string |
|
43 |
+ */ |
|
44 |
+ protected function compileEndSlot() |
|
45 |
+ { |
|
46 |
+ return '<?php $__env->endSlot(); ?>'; |
|
47 |
+ } |
|
48 |
+ |
|
49 |
+ /** |
|
50 |
+ * Compile the component-first statements into valid PHP. |
|
51 |
+ * |
|
52 |
+ * @param string $expression |
|
53 |
+ * @return string |
|
54 |
+ */ |
|
55 |
+ protected function compileComponentFirst($expression) |
|
56 |
+ { |
|
57 |
+ return "<?php \$__env->startComponentFirst{$expression}; ?>"; |
|
58 |
+ } |
|
59 |
+ |
|
60 |
+ /** |
|
61 |
+ * Compile the end-component-first statements into valid PHP. |
|
62 |
+ * |
|
63 |
+ * @return string |
|
64 |
+ */ |
|
65 |
+ protected function compileEndComponentFirst() |
|
66 |
+ { |
|
67 |
+ return $this->compileEndComponent(); |
|
68 |
+ } |
|
69 |
+} |