Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolvable dependency #2

Closed
adrenth opened this issue Dec 6, 2018 · 2 comments
Closed

Unresolvable dependency #2

adrenth opened this issue Dec 6, 2018 · 2 comments

Comments

@adrenth
Copy link

adrenth commented Dec 6, 2018

Got a Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Support\Manager after upgrading to latest laravel 5.7.16.

Stack trace

Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Support\Manager {"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\\Support\\Manager at /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php:960)
[stacktrace]
#0 /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php(898): Illuminate\\Container\\Container->unresolvablePrimitive(Object(ReflectionParameter))
#1 /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php(839): Illuminate\\Container\\Container->resolvePrimitive(Object(ReflectionParameter))
#2 /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php(807): Illuminate\\Container\\Container->resolveDependencies(Array)
#3 /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php(658): Illuminate\\Container\\Container->build('Illuminate\\\\Noti...')
#4 /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php(609): Illuminate\\Container\\Container->resolve('Illuminate\\\\Noti...', Array)
#5 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(735): Illuminate\\Container\\Container->make('Illuminate\\\\Noti...', Array)
#6 /myproject/vendor/laravel/framework/src/Illuminate/Container/Container.php(1222): Illuminate\\Foundation\\Application->make('Illuminate\\\\Noti...')
#7 /myproject/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(161): Illuminate\\Container\\Container->offsetGet('Illuminate\\\\Noti...')
#8 /myproject/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(130): Illuminate\\Support\\Facades\\Facade::resolveFacadeInstance('Illuminate\\\\Noti...')
#9 /myproject/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(217): Illuminate\\Support\\Facades\\Facade::getFacadeRoot()
#10 /myproject/vendor/laravel/nexmo-notification-channel/src/NexmoChannelServiceProvider.php(27): Illuminate\\Support\\Facades\\Facade::__callStatic('extend', Array)
#11 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(574): Illuminate\\Notifications\\NexmoChannelServiceProvider->register()
#12 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register(Object(Illuminate\\Notifications\\NexmoChannelServiceProvider))
#13 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(550): Illuminate\\Foundation\\ProviderRepository->load(Array)
#14 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#15 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(204): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#16 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(297): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#17 /myproject/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(120): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#18 /myproject/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 {main}
@driesvints
Copy link
Member

Did you try the solution from laravel/framework#26766?

@adrenth
Copy link
Author

adrenth commented Dec 6, 2018

Thanks for the reference to the solution!

Adding Illuminate\Notifications\NotificationServiceProvider::class to my config/app.php fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants