Commit 5d075703 authored by Fabien Potencier's avatar Fabien Potencier

changed Swiftmailer autoloader to use the Swiftmailer one (it automatically loads the init file)

parent d93baefb
...@@ -73,7 +73,9 @@ class SwiftmailerExtension implements ExtensionInterface ...@@ -73,7 +73,9 @@ class SwiftmailerExtension implements ExtensionInterface
}); });
if (isset($app['swiftmailer.class_path'])) { if (isset($app['swiftmailer.class_path'])) {
$app['autoloader']->registerPrefix('Swift_', $app['swiftmailer.class_path']); require_once $app['swiftmailer.class_path'].'/Swift.php';
Swift::registerAutoload($app['swiftmailer.class_path'].'/swift_init.php');
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment