Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-mlc
kohinos
Commits
66e71ad0
Commit
66e71ad0
authored
Sep 07, 2020
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix emails non envoyés à l'import
parent
de82afab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
swiftmailer.yaml
config/packages/dev/swiftmailer.yaml
+1
-1
ImportController.php
src/Controller/ImportController.php
+10
-2
No files found.
config/packages/dev/swiftmailer.yaml
View file @
66e71ad0
# See https://symfony.com/doc/current/email/dev_environment.html
swiftmailer
:
# send all emails to a specific address
delivery_addresses
:
[
'
julien.jorry
@gmail.com'
]
delivery_addresses
:
[
'
dam.moulard
@gmail.com'
]
src/Controller/ImportController.php
View file @
66e71ad0
...
...
@@ -38,6 +38,7 @@ use Symfony\Component\HttpFoundation\Response;
use
Symfony\Component\Routing\Annotation\Route
;
use
Symfony\Component\Security\Core\Security
;
use
Symfony\Component\Translation\TranslatorInterface
;
use
Symfony\Component\EventDispatcher\EventDispatcherInterface
;
class
ImportController
extends
CRUDController
{
...
...
@@ -55,8 +56,14 @@ class ImportController extends CRUDController
protected
$userManager
;
protected
$translator
;
protected
$tokenGenerator
;
public
function
__construct
(
EntityManagerInterface
$em
,
Security
$security
,
UserManagerInterface
$userManager
,
TranslatorInterface
$translator
,
TokenGeneratorInterface
$tokenGenerator
)
protected
$eventDispatcher
;
public
function
__construct
(
EntityManagerInterface
$em
,
Security
$security
,
UserManagerInterface
$userManager
,
TranslatorInterface
$translator
,
TokenGeneratorInterface
$tokenGenerator
,
EventDispatcherInterface
$eventDispatcher
)
{
$this
->
header
=
null
;
$this
->
warnings
=
array
();
...
...
@@ -69,6 +76,7 @@ class ImportController extends CRUDController
$this
->
userManager
=
$userManager
;
$this
->
translator
=
$translator
;
$this
->
tokenGenerator
=
$tokenGenerator
;
$this
->
eventDispatcher
=
$eventDispatcher
;
$this
->
siege
=
null
;
$this
->
sendemail
=
false
;
}
...
...
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