Archived video

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

Alternate resources: 

Listing and Using Services in Symfony 3

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

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

Log in Sign up
  • 0:08
    Rendering a template is pretty common,
  • 0:10
    so there's a shortcut when you're in a controller.
  • 0:12
    Replace all of this code with a simple return $this->render.
  • 0:19
    That's it.
  • 0:21
    Make sure this works by refreshing.
  • 0:23
    So what does this magic-looking render function actually do?
  • 0:27
    Let's find out.
  • 0:29
    Hold Command or Control, depending on your operating system,
  • 0:33
    and click render to be taken straight
  • 0:35
    into the base Controller class where this function lives,

Listing and Using Services in Symfony 3


In this lesson, you'll learn how to find services you might want to use in the container by listing them.

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.