Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
Remove useless swiftmailer.spool.file.abstract argument
Browse files Browse the repository at this point in the history
(with kernel.root_dir that is removed in Symfony 5)
  • Loading branch information
l-vo committed Oct 25, 2019
1 parent 6b895bc commit 21bebc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/SwiftmailerExtension.php
Expand Up @@ -259,7 +259,7 @@ protected function configureMailerSpool($name, array $mailer, ContainerBuilder $
if ('file' === $type) {
$container
->setDefinition(sprintf('swiftmailer.mailer.%s.spool.file', $name), $definitionDecorator)
->replaceArgument(0, sprintf('%%swiftmailer.spool.%s.file.path%%', $name))
->setArgument(0, sprintf('%%swiftmailer.spool.%s.file.path%%', $name))
;
} elseif ('memory' === $type) {
$container
Expand Down
4 changes: 1 addition & 3 deletions Resources/config/swiftmailer.xml
Expand Up @@ -47,9 +47,7 @@

<service id="swiftmailer.transport.spool.abstract" class="Swift_Transport_SpoolTransport" public="false" abstract="true" />

<service id="swiftmailer.spool.file.abstract" class="Swift_FileSpool" public="false" abstract="true">
<argument>%kernel.root_dir%/../data/swiftmailer/spool</argument>
</service>
<service id="swiftmailer.spool.file.abstract" class="Swift_FileSpool" public="false" abstract="true" />

<service id="swiftmailer.spool.memory.abstract" class="Swift_MemorySpool" public="false" abstract="true" />

Expand Down

0 comments on commit 21bebc8

Please sign in to comment.