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

Commit

Permalink
merged branch hacfi/patch-1 (PR #46)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Adapt collector template name to webprofiler conventions

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | fabpot/Twig#1156
| License       | MIT

Debugging the issue I noticed that the @WebProfiler templates use a different convention.

This is a quick fix.

To allow the conventions most bundles use the Twig_Loader_Filesystem needs to be updated instead.

Commits
-------

1a05027 Adapt collector template name to webprofiler conventions
  • Loading branch information
fabpot committed Aug 5, 2013
2 parents 6b52e41 + 1a05027 commit 8348807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/SwiftmailerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('swiftmailer.mailers', $mailers);
$container->setParameter('swiftmailer.default_mailer', $config['default_mailer']);

$container->findDefinition('swiftmailer.data_collector')->addTag('data_collector', array('template' => 'SwiftmailerBundle:Collector:swiftmailer', 'id' => 'swiftmailer'));
$container->findDefinition('swiftmailer.data_collector')->addTag('data_collector', array('template' => '@Swiftmailer/Collector/swiftmailer.html.twig', 'id' => 'swiftmailer'));

$container->setAlias('mailer', 'swiftmailer.mailer');
}
Expand Down

0 comments on commit 8348807

Please sign in to comment.