From 4b60ec334203be3f082dd6213ba099360234a386 Mon Sep 17 00:00:00 2001 From: Rodrigo Pedra Brum Date: Tue, 21 May 2024 14:37:01 -0300 Subject: [PATCH 1/2] do not use app() foundation helper (#51522) --- src/Illuminate/View/ViewServiceProvider.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/View/ViewServiceProvider.php b/src/Illuminate/View/ViewServiceProvider.php index bfdc27ac7e41..41cd8b93c9aa 100755 --- a/src/Illuminate/View/ViewServiceProvider.php +++ b/src/Illuminate/View/ViewServiceProvider.php @@ -2,6 +2,7 @@ namespace Illuminate\View; +use Illuminate\Container\Container; use Illuminate\Support\ServiceProvider; use Illuminate\View\Compilers\BladeCompiler; use Illuminate\View\Engines\CompilerEngine; @@ -135,7 +136,7 @@ public function registerEngineResolver() public function registerFileEngine($resolver) { $resolver->register('file', function () { - return new FileEngine(app()->make('files')); + return new FileEngine(Container::getInstance()->make('files')); }); } @@ -148,7 +149,7 @@ public function registerFileEngine($resolver) public function registerPhpEngine($resolver) { $resolver->register('php', function () { - return new PhpEngine(app()->make('files')); + return new PhpEngine(Container::getInstance()->make('files')); }); } @@ -161,7 +162,7 @@ public function registerPhpEngine($resolver) public function registerBladeEngine($resolver) { $resolver->register('blade', function () { - $app = app(); + $app = Container::getInstance(); $compiler = new CompilerEngine( $app->make('blade.compiler'), From afdc2b03bd8d126446583da5414d659491aa4f54 Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 21 May 2024 17:53:51 +0000 Subject: [PATCH 2/2] Update version to v10.48.11 --- src/Illuminate/Foundation/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index f419828c6430..a3d99698b1cc 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -40,7 +40,7 @@ class Application extends Container implements ApplicationContract, CachesConfig * * @var string */ - const VERSION = '10.48.10'; + const VERSION = '10.48.11'; /** * The base path for the Laravel installation.