It seems references to parameters in parameters are not resolved
(replaced):

yaml file:

parameters:
   dbname: db_%sport%

then in code (pseudo-code actually)

$container->setParameter('sport', 'soccer');
$loader = ...($container)
$loader->load(yaml_file)

And db_%sport% is not resolved and it remains db_%sport% as it is.

Am I doing something wrong?

For now I use my own ParameterBag:

<?php
use Symfony\Component\DependencyInjection;

class ParameterBag extends DependencyInjection\ParameterBag
\ParameterBag {

  public function get($name) {
    return $this->resolveValue(parent::get($name));
  }

}

-- 
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

Reply via email to