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});
Tip: 5,334 quizzes have already been completed with an average score of 62!
Permalink: https://rappasoft.com/quizzes/laravel/service-container/038f69a3-68d7-46b3-bcdd-813262e96d78
You can also get here with laravel-quizzes.com