@@ -58,6 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | /** |
60 | 60 | * @Then the :messageId mail should have been sent |
61 | + * @param string $messageId |
|
61 | 62 | */ |
62 | 63 | public function mailShouldHaveBeenSent($messageId) |
63 | 64 | { |
@@ -168,10 +169,17 @@ discard block |
||
168 | 169 | return $this->kernel->getContainer()->getParameter('swiftmailer.spool.default.file.path'); |
169 | 170 | } |
170 | 171 | |
172 | + /** |
|
173 | + * @param string $content |
|
174 | + */ |
|
171 | 175 | private function replaceParams($content) |
172 | 176 | { |
173 | 177 | echo $contentUpdated = preg_replace_callback( |
174 | 178 | '/{{(.+)}}/', |
179 | + |
|
180 | + /** |
|
181 | + * @param string $matches |
|
182 | + */ |
|
175 | 183 | function ($matches) { |
176 | 184 | return $this->kernel->getContainer()->getParameter($matches[1]); |
177 | 185 | }, |