From the Symfony book: one key component of Symfony, the dependency injection container, is responsible for managing services: creating them and injecting them whenever needed. A service is a “global” object that provides features (e.g. a mailer, a logger, a slugger, etc.) unlike data objects (e.g. Doctrine entity instances).
Leave a Reply