Quizzes: Laravel • Architecture Concepts • Service Container

What does the following snippet do?

11 Remaining
use App\Services\Transistor;
use App\Services\PodcastParser;

$this->app->singleton(Transistor::class, function ($app) {
    return new Transistor($app->make(PodcastParser::class));
});
What does the following snippet do?
Tip: 3,681 quizzes have already been completed with an average score of 63!

Permalink: https://rappasoft.com/quizzes/laravel/service-container/a60c8db1-bfb6-4152-9176-06dd86d73742

Find this useful? Consider sponsoring me on GitHub
You can also get here with laravel-quizzes.com