[SwiftmailerBundle] removed the need for adding the swiftmailer path to the include path
This commit is contained in:
parent
7764a278c4
commit
50610bc92b
@ -52,6 +52,9 @@ class SwiftMailerExtension extends LoaderExtension
|
||||
$configuration->setAlias('mailer', 'swiftmailer.mailer');
|
||||
}
|
||||
|
||||
$r = new \ReflectionClass('Swift_Message');
|
||||
$configuration->setParameter('swiftmailer.base_dir', dirname(dirname(dirname($r->getFilename()))));
|
||||
|
||||
$transport = $configuration->getParameter('swiftmailer.transport.name');
|
||||
if (array_key_exists('transport', $config)) {
|
||||
if (null === $config['transport']) {
|
||||
|
@ -22,7 +22,7 @@
|
||||
<parameter key="swiftmailer.transport.failover.class">Swift_Transport_FailoverTransport</parameter>
|
||||
<parameter key="swiftmailer.spool.file.class">Swift_FileSpool</parameter>
|
||||
|
||||
<parameter key="swiftmailer.init_file">swift_init.php</parameter>
|
||||
<parameter key="swiftmailer.init_file">%swiftmailer.base_dir%/swift_init.php</parameter>
|
||||
|
||||
<parameter key="swiftmailer.plugin.redirecting.class">Swift_Plugins_RedirectingPlugin</parameter>
|
||||
<parameter key="swiftmailer.plugin.blackhole.class">Swift_Plugins_BlackholePlugin</parameter>
|
||||
|
Reference in New Issue
Block a user