Register now to train with BuildAModule at DrupalCon! (and 5 new Drupal videos)
Registration for our highly-rated, practical and super fun training is now open! To register you or your team simply click here to add the training to your DrupalCon cart, or learn a bit more about the structure of the training here. If you want to make a huge leap up the Drupal learning curve AND get 4 months BuildAModule access for free AND get access to some amazing Drupal trainers for one-on-one help, this is the training for you.
If you are part of a Drupal team that has recently standardized on Drupal across your organization, this training will help your team mobilize in the right direction, so consider having your team do the training together.
If you have any questions at all about the training, just send them our way.
Ticket sales go fast, so be sure to grab them before it's too late!
And 5 New Videos on Having Multiple Front Controllers in Symfony
After setting up our controller resolver, we update our routes to point to a method in our controller class and update our controller.
In this video, we look at the code in our front controller and see that it would actually be pretty useful for other applications as well. This code could actually be the basis for a framework class. By moving our code out of our front controller, we make it simple enough so that we could have multiple front controllers without much duplicated code. If you’re not sure why that would be useful, watch the video to find out!
Here we do the grunt work of pulling the code out of our front controller and into a new Framework class.
One our framework class is in place, we update our front controller to use it, greatly simplifying the code.
One minute of reassurance - 0:57
At this point, we’re looking at a front controller that sets up half a dozen different classes that are all kind of abstract and only make sense in a certain context. In this video, I offer some reassurance that it took me a few times going through this to really understand it, and that much of what we’re covering is merely building up to the concept of why a framework is useful, and that some of these components you won’t need to use in your daily life.