0

In symfony framework service's is the same depedency injection ?

What is the difference beetwen service container as Dependency Injection ?

webwinner
  • 67
  • 1
  • 8
  • Consider getting someone to help you translate your question. What you posted makes no sense at all. – Cerad Oct 18 '17 at 22:19

2 Answers2

1

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

darkomen
  • 4,281
  • 9
  • 35
  • 65
0

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.

ccKep
  • 5,656
  • 16
  • 28