When learning modern PHP frameworks, the term autowiring crops up quite a bit. In this talk we will explore what autowiring is and how it is used. We will look at the mechanics of a framework such as DI, Factories and DIC before looking at how autowiring fits in and how it really works.

Comments

Please login to leave a comment

Andrew Swan at 19:53 on 12 Feb 2020

Enjoyed the talk. A bit over my head at this stage but recognised a few things from
the talk.

Lucia Velasco at 19:54 on 12 Feb 2020

I felt like the beginning was a bit humblebrag, but I like how you went into how and why you learnt about autowiring.
It might be beneficial for people not familiar with MVC to briefly explain what UserModel is?
I liked that the examples were short and sweet, and that you used something relatable (with a user model.)
I liked your pros/cons Factory slide.
Don't forget to remove KW new from DIC slide.
Do you ever get recursion issues from DICs? If I remember I'll ask this.
I think you could have spoken slower during the first three sections.
"I have no idea what this slide is" loved that. Very quickly figured out.
I liked your tone when you described how autowiring is black magic!
The setter thing is interesting.
Is it scala or scalar?
Ooooh, ReflectionClass! I like that you paused for effect/to check we were with you.
I'm glad you mentioned that you assumed it's in the DIC, nice touch.
Lol nice spread tangent.
Loved it.

Ben Lumley at 19:57 on 12 Feb 2020

Liked the talk, great delivery.
I think 30 seconds covering concept of reflection would be a good addition if you are pitching at an audience that may not already know di as a concept

Tim Remnant at 20:01 on 12 Feb 2020

Very good talk. Good slides with decent examples. A live example would be nice but I know that can be hard to demo.

Dan Ackroyd at 20:09 on 12 Feb 2020

Nice talk, really wish people would stop saying “type hint” though and say parameter type instead.
Also maybe change the code example from UserModel to a simple service as not everyone might be familiar with UserModel if they haven’t used the frameworks those are used in.

Rick Hurst at 22:42 on 12 Feb 2020

Great talk on a concept I'd never really thought about before, well explained.

Piers Hobson at 11:22 on 13 Feb 2020

Thanks for the talk. Very clear slides.

A bit rushed in places. Pro/cons slides were really nice.

At one stage I thought would be fun to work out how to implement an autowiring class, but then you showed us how it could work, dispelling some of the 'magic' discomfort.

Lose the hat next time.

Thanks again for a great talk.

Good talk. Nice clear slides.

To improve:
- maybe pick a simple example that does something obvious and required, possibly a UserModel is a bit abstract.
- maybe spend a little longer explaining benefits.
- When you were talking about reflection you spoke about type hinting with on interfaces and how DI could wire in the concrete implementation. This section would benefit from a slide.
- Maybe speak a little slower, it seemed rushed in places

Good luck for when you present it at a conference.