Reputation: 87
In symfony framework service's is the same depedency injection ?
What is the difference beetwen service container as Dependency Injection ?
Upvotes: 0
Views: 438
Reputation: 1525
You could probably quibble with this but:
Upvotes: 0
Reputation: 4721
service container as Dependency Injection is a concept for applications developer. Each langugage paradigm as Java, Python or PHP has a service container (DI for Dependency Injection).
For the framework PHP Symfony it tells that Service Container (or just service). In DI concept you can easily delete the contain. It's a obviousness. Because all DI (Java, Python, etc...) live into a container or just a context.
If you already know language that Java and You want to know how symfony manage DI then I just says :"the service" in symfony is the concept of DI for this framework in PHP language.
You can read this post : What is Dependency Injection
Upvotes: 1
Reputation: 5857
There's pretty much a direct answer in the Symfony docs:
The DependencyInjection component implements a PSR-11 compatible service container that allows you to standardize and centralize the way objects are constructed in your application.
Also, take a look at the Service Container docs.
Upvotes: 0