Dependency Injection and the art of services and containers
Injecting Config & Services and using Interfaces
  Unlock this challenge
Login Register

Challenge 1 / 3

What is the primary advantage of passing an object that implements MailerInterface to the FriendHarvester class, as opposed to using a specific class like SmtpMailer?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.