Drupal 8 leverages a number of new libraries, including a slew from the Symfony 2 project. As stand-alone components, each one does an awesome job of making some part of building web applications easier. Taken together, they provide a solid, rational framework that Drupal 8 uses to manage complicated tasks like routing and dependency injection. Don't worry if that sounds overwhelming, we'll start simple so you can unwrap the onion layers and fully appreciate each component before we dive too deep.
Below are the next 5 videos in our Drupal 8 Developer prep series. We explore what Symfony is, and work our way into learning the first component we need when building an application with Symfony.
If you’ve heard anything about Drupal 8, you’ve probably heard a bit about Symfony2. Symfony is a full-fledged framework that powers a lot of big sites out there (much like Drupal). Drupal incorporates several Symfony components, allowing us to leverage some mature code without re-inventing the wheel.
Throughout this section on Symfony, we’ll be using fairly simple example pages to demonstrate the advantages of refactoring to use various Symfony components. With this first ‘Hello, world’ script, we can identify several problems that are easily addressed by Symfony.
In this video, we do our best to address the issues we identified with our initial script to get a sense of the direction we’d take.
Now that we’ve seen how to tackle some of the problems with our initial script, we’re in a position to appreciate what the Http Foundation component has to offer. In this video, we rebuild our script using the Request and Response classes which come with the component.
Having seen Request and Response, we dive into the paradigm of thinking about our page in terms of the two part process of a client request-ing something from the server, and then respond-ing with something the client expects.