PhpStorm
 
Get PhpStorm

Service Container

Last modified: 17 June 2024

Symfony applications comprise multiple objects called services. Some services, such as Session, Doctrine, or FileSystem, are inherent to using Symfony as the development platform. Other objects are specific to the application being developed. The Symfony service container helps instantiate, organize and retrieve these objects. It also holds a collection of parameters letting configure the behavior or specific values that the application can use.

The Symfony Support plugin provides code completion and navigation for the services and parameters that are registered with the Symfony service container and assist you in registering new ones.