Dependency injection

The Pacemaker Community Edition (CE) components do not care about DI, but they can be tied together using DI.

For the Pacemaker Community Edition (CE) Console Tool, that we’ve implemented as a reference application, we used the Symfony DI Container to compose the application.

To make a start as simple as possible, we recommend using Symfony and Symfony DI when starting writing your component or application.

Therefore each core library provides the necessary Symfony DI configuration files in the directory symfony/Resources/config/services.xml.

To get an impression on how Symfony DI can be used to composer your application, look at the reference application.

Pacemaker Community Edition (CE) Console Tool, which parses the library files on start-up, depending on the used Magento Edition, the appropriate load, initialize, and inject the necessary classes.

For configuration the Symfony service IDs will be used instead of the real class names.