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