laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 420 forks source link

View method regression in version 9.1.4 #1255

Closed madhurbhaiya closed 1 year ago

madhurbhaiya commented 1 year ago

Description:

Getting undefined method error while using view() method for generating html (required for email body). Please note that downgrading to 9.1.2 works fine. So, this is definitely a regression.

Call to undefined method Laravel\Lumen\Application::terminating() {"exception":"[object] (Error(code: 0): Call to undefined method Laravel\\Lumen\\Application::terminating() at /code/vendor/illuminate/view/ViewServiceProvider.php:26)
[stacktrace]
#0 /code/vendor/laravel/lumen-framework/src/Application.php(233): Illuminate\\View\\ViewServiceProvider->register()
#1 /code/vendor/laravel/lumen-framework/src/Application.php(665): Laravel\\Lumen\\Application->register()
#2 /code/vendor/laravel/lumen-framework/src/Application.php(648): Laravel\\Lumen\\Application->loadComponent()
#3 /code/vendor/illuminate/container/Container.php(871): Laravel\\Lumen\\Application->Laravel\\Lumen\\{closure}()
#4 /code/vendor/illuminate/container/Container.php(756): Illuminate\\Container\\Container->build()
#5 /code/vendor/illuminate/container/Container.php(692): Illuminate\\Container\\Container->resolve()
#6 /code/vendor/laravel/lumen-framework/src/Application.php(300): Illuminate\\Container\\Container->make()
#7 /code/vendor/laravel/lumen-framework/src/helpers.php(42): Laravel\\Lumen\\Application->make()
#8 /code/vendor/laravel/lumen-framework/src/helpers.php(427): app()
#9 /code/app/Behaviour.php(434): view()

Steps To Reproduce:

Just call view() method