Howdy, I have an Extension that, upon parsing a config, does the following:
$serviceDef = $container->getDefinition('my.service'); $adapterRef = new Definition('%my.adapter.class%'); $adapterRef->addMethodCall('setDescription', 'Symfony Rocks!'); $serviceDef->addMethodCall('setAdapter', array($adapterRef)); Problem being, `$service->getAdapter()` returns the Definition rather than the resolved instantiated class. What is the best practice here? Using a factory class to handle all of this? Are there any comprehensive articles on this? (Bonus question: It doesn't appear that you can do chaining like ` $service->getAdapters()->addAdapter($adapter)`, but only method calls on the immediate parent) -- 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 users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en