-
Notifications
You must be signed in to change notification settings - Fork 37
ContainerBuilderAsReference
Mauro Gadaleta edited this page Jun 19, 2026
·
2 revisions
Inject the container itself when a service needs runtime access to other services.
You can use the container builder as reference if you need to use it around your application.
import {ContainerBuilder}
const container = new ContainerBuilder(true)
...
const containerAsService = container.get('service_container')Or you can use the configuration file.
services:
app.some_manager:
class: ./App/Service/SomeManager
arguments: ['@service_container']
# more services definition...Copyright © 2023-2024 Mauro Gadaleta