> It is possible in a DI extension by calling
> $container->getDefinition('my.service.id')->addMethodCall(...)
> But this implies that your extension is called after the service is
> registered (and this relies of the order of the bundles in the kernel)
>
> the safe and good solution is to use a CompilerPass but this is more
> complex.
>
> --
> Christophe | StofThat sounds good, thx For sure my HelloExtension is loaded before every core extensions because it overrides core parameters. In kernel HelloBundle is added at the end of registered bundles array. Atm I cannot getDefinition() of any service from my HelloBundle extension - no core services are being registered. Any solution for that beside extending Compiler class? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
