Swift::init
Registers an initializer callable that will be called the first time a SwiftMailer class is autoloaded.
This enables you to tweak the default configuration in a lazy way.
Signature
public function init(mixed
$callable )
Parameters
$callable
— mixed- A valid PHP callable that will be called when autoloading the first Swift class