Quizzes: Laravel • Architecture Concepts • Service Container

What does the following snippet do?

11 Remaining
1use App\Services\Transistor;
2use App\Services\PodcastParser;
3 
4$this->app->singleton(Transistor::class, function ($app) {
5 return new Transistor($app->make(PodcastParser::class));
6});
What does the following snippet do?
Tip: 5,382 quizzes have already been completed with an average score of 62!

Permalink: https://rappasoft.com/quizzes/laravel/service-container/b84114bb-c61d-4539-85dd-6638139c6b8b

You can also get here with laravel-quizzes.com