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;
14 use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
19 * Adds a method to call after service initialization.
21 * @param string $method The method name to call
22 * @param array $arguments An array of arguments to pass to the method call
26 * @throws InvalidArgumentException on empty $method param
28 final public function call($method, array $arguments = array())
30 $this->definition->addMethodCall($method, static::processValue($arguments, true));