Module Development

PHP Container Review for Drupal 8, 9

Sprout Video

We've got a nice little app working now, using our service container well. Good work! In this final lesson for this series we're going to have a review of working with containers. We'll look at why this is such a good practice, discuss model classes versus service classes, and take a moment to acknowledge best practices versus the real world implementations you can end up with.

Additional resources

Explore more Object-Oriented PHP tutorials