Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
f409df8f
Commit
f409df8f
authored
Sep 02, 2015
by
Jordi Boggiano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove event type hint as ConsoleEvents are not ResponseEvents
parent
2183542a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/Silex/Provider/SwiftmailerServiceProvider.php
src/Silex/Provider/SwiftmailerServiceProvider.php
+2
-1
No files found.
src/Silex/Provider/SwiftmailerServiceProvider.php
View file @
f409df8f
...
@@ -99,7 +99,8 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe
...
@@ -99,7 +99,8 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe
public
function
subscribe
(
Container
$app
,
EventDispatcherInterface
$dispatcher
)
public
function
subscribe
(
Container
$app
,
EventDispatcherInterface
$dispatcher
)
{
{
$onTerminate
=
function
(
PostResponseEvent
$event
)
use
(
$app
)
{
// Event has no typehint as it can be either a PostResponseEvent or a ConsoleTerminateEvent
$onTerminate
=
function
(
$event
)
use
(
$app
)
{
// To speed things up (by avoiding Swift Mailer initialization), flush
// To speed things up (by avoiding Swift Mailer initialization), flush
// messages only if our mailer has been created (potentially used)
// messages only if our mailer has been created (potentially used)
if
(
$app
[
'mailer.initialized'
])
{
if
(
$app
[
'mailer.initialized'
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment