Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Lessons:16Length:1.3 hours
  • Overview
  • Transcript

3.6 Dependency Inversion

We finished up the previous lesson by injecting an instance of the `StripeBilling` class into our controller. However, that’s not ideal. What if, in the future, you’d like to use a different billing provider entirely? As our code currently sits, we’d need to modify quite a bit of code to allow for this. Let’s fix that!