Archived video

This video is archived and won't be updated. We're keeping it online for now as a courtesy.

Alternate resources: 

The Dreaded Dependency Injection in Symfony 3

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:08
    The MarkdownTransformer will do 2 things,
  • 0:11
    parse markdown and eventually cache it.
  • 0:14
    Let's start with the first.
  • 0:16
    Open up GenusController and copy the code
  • 0:18
    that originally parsed the text through markdown.
  • 0:22
    Now paste this into the parse function.
  • 0:26
    Return that and update the variable to $str.
  • 0:30
    Wow, that was easy.
  • 0:32
    Go back and refresh.
  • 0:35
    It explodes!

The Dreaded Dependency Injection in Symfony 3

Loading...

In this lesson, you'll learn about the dependency injection workflow and refactor our code to inject the dependency.

Downloads: 
Log in or sign up to download companion files.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.