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\Traits;
17 * Sets the arguments to pass to the service constructor/factory method.
19 * @param array $arguments An array of arguments
23 final public function args(array $arguments)
25 $this->definition->setArguments(static::processValue($arguments, true));
31 * Sets one argument to pass to the service constructor/factory method.
33 * @param string|int $key
38 final public function arg($key, $value)
40 $this->definition->setArgument($key, static::processValue($value, true));