2
2
3
3
namespace Illuminate \View ;
4
4
5
+ use Illuminate \Container \Container ;
5
6
use Illuminate \Support \ServiceProvider ;
6
7
use Illuminate \View \Compilers \BladeCompiler ;
7
8
use Illuminate \View \Engines \CompilerEngine ;
@@ -135,7 +136,7 @@ public function registerEngineResolver()
135
136
public function registerFileEngine ($ resolver )
136
137
{
137
138
$ resolver ->register ('file ' , function () {
138
- return new FileEngine (app ()->make ('files ' ));
139
+ return new FileEngine (Container:: getInstance ()->make ('files ' ));
139
140
});
140
141
}
141
142
@@ -148,7 +149,7 @@ public function registerFileEngine($resolver)
148
149
public function registerPhpEngine ($ resolver )
149
150
{
150
151
$ resolver ->register ('php ' , function () {
151
- return new PhpEngine (app ()->make ('files ' ));
152
+ return new PhpEngine (Container:: getInstance ()->make ('files ' ));
152
153
});
153
154
}
154
155
@@ -161,7 +162,7 @@ public function registerPhpEngine($resolver)
161
162
public function registerBladeEngine ($ resolver )
162
163
{
163
164
$ resolver ->register ('blade ' , function () {
164
- $ app = app ();
165
+ $ app = Container:: getInstance ();
165
166
166
167
$ compiler = new CompilerEngine (
167
168
$ app ->make ('blade.compiler ' ),
0 commit comments