YoVDO

OOP (Course 2): Services, Dependency Injection and Containers

Offered By: SymfonyCasts

Tags

Dependency Injection Courses Object-oriented programming Courses Containers Courses Configuration Management Courses

Course Description

Overview

Time to take things up a notch!

In this Course, we'll leverage what we learned in Course 1 to really start using what we know. We'll clean up old functions with new classes, learn a practice called dependency injection and organize our objects into something called a container. This is the course that really makes objects useful and sets us up for future stuff (inheritance, interfaces, etc).

So let's get serious:

  • Service Classes
  • Organize with private functions
  • Goodbye arrays, hello BattleResult
  • Objects passed by Reference
  • Query from the Database, but using Objects!
  • Dependency Injection!!!
  • Creating a Service Container

Do it!


Syllabus

  • Service Classes
  • An Army of Service Classes
  • Sharpening the Battle Result with a Class
  • Optional type-hinting & Semantic Methods
  • Objects are Passed by Reference
  • Fetching Objects from the Database
  • Handling the Object Id
  • Making only one DB Connection with a Property
  • OO Best Practice: Centralizing Configuration
  • OO Best Practice: Centralizing the Connection
  • Service Container
  • Container: Force Single Objects, Celebrate
  • Container to the Rescue

Taught by

Ryan Weaver and Leanna Pelham

Related Courses

Introduction à la programmation orientée objet (en Java)
École Polytechnique Fédérale de Lausanne via Coursera
C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera
Introduction to Programming for Musicians and Digital Artists
California Institute of the Arts via Coursera
Beginning Game Programming with C#
University of Colorado System via Coursera
Paradigms of Computer Programming
Université catholique de Louvain via edX