4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
14 use Symfony\Component\DependencyInjection\ContainerBuilder;
17 * @author Nicolas Grekas <p@tchwork.com>
19 class ParametersConfigurator extends AbstractConfigurator
21 const FACTORY = 'parameters';
25 public function __construct(ContainerBuilder $container)
27 $this->container = $container;
31 * Creates a parameter.
38 final public function set($name, $value)
40 $this->container->setParameter($name, static::processValue($value, true));
46 * Creates a parameter.
53 final public function __invoke($name, $value)
55 return $this->set($name, $value);