1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,23 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\View\Compilers\Concerns; |
|
4 |
- |
|
5 |
-trait CompilesInjections |
|
6 |
-{ |
|
7 |
- /** |
|
8 |
- * Compile the inject statements into valid PHP. |
|
9 |
- * |
|
10 |
- * @param string $expression |
|
11 |
- * @return string |
|
12 |
- */ |
|
13 |
- protected function compileInject($expression) |
|
14 |
- { |
|
15 |
- $segments = explode(',', preg_replace("/[\(\)\\\"\']/", '', $expression)); |
|
16 |
- |
|
17 |
- $variable = trim($segments[0]); |
|
18 |
- |
|
19 |
- $service = trim($segments[1]); |
|
20 |
- |
|
21 |
- return "<?php \${$variable} = app('{$service}'); ?>"; |
|
22 |
- } |
|
23 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,23 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\View\Compilers\Concerns; |
|
4 |
+ |
|
5 |
+trait CompilesInjections |
|
6 |
+{ |
|
7 |
+ /** |
|
8 |
+ * Compile the inject statements into valid PHP. |
|
9 |
+ * |
|
10 |
+ * @param string $expression |
|
11 |
+ * @return string |
|
12 |
+ */ |
|
13 |
+ protected function compileInject($expression) |
|
14 |
+ { |
|
15 |
+ $segments = explode(',', preg_replace("/[\(\)\\\"\']/", '', $expression)); |
|
16 |
+ |
|
17 |
+ $variable = trim($segments[0]); |
|
18 |
+ |
|
19 |
+ $service = trim($segments[1]); |
|
20 |
+ |
|
21 |
+ return "<?php \${$variable} = app('{$service}'); ?>"; |
|
22 |
+ } |
|
23 |
+} |