trait CallTrait
$this | call(string $method, array $arguments = array()) Adds a method to call after service initialization. |
Adds a method to call after service initialization.
string | $method | The method name to call |
array | $arguments | An array of arguments to pass to the method call |
$this |
InvalidArgumentException | on empty $method param |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/CallTrait.html