Symfony\Component\DependencyInjection\Definition::addMethodCall
Adds a method to call after service initialization.
Signature
public function addMethodCall(string
$method,
array
$arguments )
Parameters
$method
— string- The method name to call
$arguments
— array- An array of arguments to pass to the method call
Returns
- Definition
- The current instance
Errors/Exceptions
-
InvalidArgumentException
- on empty $method param