Answer the question
In order to leave comments, you need to log in
Loading configuration and set parameters?
i need to have access to only one configuration section in services
, this section is called conf_key and lies under someconfig
class myExtension extends Extension implements PrependExtensionInterface
{
public function prepend(ContainerBuilder $container)
{
$container->setParameter("myParam4FutureInjection", $container->getExtensionConfig("someconfig")[1]["conf_key"]);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question