OOP (Course 2): Services, Dependency Injection and Containers
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…
Track
Learn OOP
…these mean? But more importantly: how can I use them to make my applications better and easier to maintain? What is dependency injection and how does it factor in?
Understanding the basics of OOP is just the beginning: it opens up a whole new world.
Deployment & Supervisor
…all works, we're going to pretend
like my computer is production and change the path to point to use my local path:
/Users/weaverryan/messenger... which if I double-check in my terminal... oop - I
forgot the Sites/ part. Then, down here, I'll…
Hi,
Thank you for OOP course.
Small note:
- "I'll just paste in the finished version: you can copy this from the code block on this page. We're simply calling the inner dispatcher in every method."
Looks like I don't see/find "the…
Finally done with OOP Full Course.
It's been a really nice experience full of fun.
Great examples, great way to explain the topics, but in some cases a few exercises were a little bit confusing!.
I'll definitely keep studying the rest of the…
I am new to OOP, I was lost in chapter 1 especially with mile long Class names lol.
Hey Nicholas
The OOP will be fine, really! It holds a lot of OO concepts which use in Symfony or any modern framework/library. But first of all, take a look at a few short courses if you don't yet:
https://knpuniversity.com/screencast…
I did all of the OOP courses in the track (until this point), but non of them explained me what is the manager folder for. I only knew services and entities... Entities store data and services do some work with the data.... but manager?
Hi,
courses 1 to 3 of OOP seem have "Drupal 8" track in the breadcrumb (below SFCast logo) ;)
Should I go ahead and learn OOP after this last episode?
Hey Arno,
Because interfaces are the lowest level thing in OOP, *they* work behind the scene. It's not enough to just add those method. If you add all that implementation we added here - you won't be able to treat objects of the class…
I wonder if it would be possible that some tutorials around OOP design patterns could be considered (angled at PHP)? There is lots on the web, but most of it is written in hard to understand language with very poor examples. It would be awesome…
As I studied informatics the world lives without OOP. Lateron coincidentally I didnt need it - but now (in times of Drupal 8) I'm very happy that with your guides I can "update" my knowlegde on a very convenient way ! Thanks a lot !
What is the difference with the decorator strategy of what we saw in OOP composition?
Hello! Maybe more of an OOP question but, why did you set the errors separately rather than through the constructor, if they're all available at the same time?
Awesome course, the best I've seen of PHP OOP. I don't know if it would be possible to do similar with Javascript with ES7
…Nicholas,
You shouldn't, but you're definitely ready for the OOP course after this PHP track ;) If you are not sure in your strong OOP skills (Classes, Abstract classes, Interfaces, Traits and other OO concepts), then choose the OOP track first, otherwise choose whatever…
Hey Ganesh,
Hm, I'd like to recommend you to watch our PHP OOP courses: https://knpuniversity.com/tracks/oo#beginner - the error you mention relates to the basics of PHP. From the error, I see you're trying to instantiate an abstract class: "FOS…
x
39