Symfony 3 Fundamentals: Bundles, Configuration and Environments

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Alternate resources

You've created your first Symfony app and you're ready to learn more of the fundamentals of Symfony development. If you're new to Symfony 3, head over to Joyful Development with Symfony 3 to get caught up.

In this series, you'll learn the fundamental concepts of bundles, configuration and environments! We'll discover what all the files in a Symfony project do and why, the purpose of bundles and the power behind environments. So let's get to work: what we're about to learn will pay dividends for us in the future:

  • Where do services come from?
  • Installing an external bundle
  • Configuring bundles
  • Controller outside services
  • Using config:dump-reference
  • Understanding Symfony environments
  • Create your own environment
  • The prod environment and cache:clear
  • The famous parameters.yml
  • Where do routes come from?
  • src/ versus app
Tutorials in this course
More information

In this lesson, you'll learn more about the fundamentals of Symfony 3 and how to get access to more services for your app through installing bundles. If you haven't built your first app in Symfony 3 yet, head over to Joyful Development with Symfony to get up and running, then head back to this series and continue your Symfony 3 journey!

More information

In this lesson, you'll learn how to use the new service that you installed through a bundle in the previous lesson.

More information

In this lesson you'll learn how to configure and control how services from a bundle behave.

Additional resources

An Introduction to YAML

More information

In this lesson you'll learn how to add a cache service to your Symfony 3 app.

More information

In this lesson you'll learn how to further configure DoctrineCacheBundle in your Symfony 3 app.

More information

In this lesson you'll learn about how you can set up configuration for your app depending on the environment—development, production or whatever else you might have.

Additional resources

An Introduction to YAML

More information

In this lesson we'll continue to explore the configuration files for our "dev" and "prod" environments.

Additional resources

An Introduction to YAML

More information

In this lesson you'll learn how to configure settings for specific environments. Here we'll disable caching for the dev environment, so that caching is enabled only for the prod environment.

Additional resources

An Introduction to YAML

More information

In this lesson you'll learn about some special variables called parameters that are available in configuration files for Symfony. We'll explore already existing parameters as well as learn how to create a new parameter.

Additional resources

An Introduction to YAML

More information

In this lesson you'll learn how to use the extra special parameters baked right into Symfony. These particular parameters can be super useful, so let's dive right in and learn all about special parameters in Symfony.

More information

In this lesson you'll learn how to master route configuration loading and load the routes you want from certain bundles.

Ready for more Symfony 3? Check out the next series: Symfony 3: Level up with Services and the Container.