View file vendor/swiftmailer/swiftmailer/lib/dependency_maps/message_deps.php
<?php Swift_DependencyContainer::getInstance() ->register('message.message') ->asNewInstanceOf('Swift_Message') ->register('message.mimepart') ->asNewInstanceOf('Swift_MimePart') ;