Skip to content

Commit 61c3194

Browse files
committed
minor #747 Correcting sf4 config path (mstrom, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Correcting sf4 config path Commits ------- 6db8ba9 Update the SwiftMailer dev config to match recipe a86bda3 Removing requirement to register twig extension in services.yaml 9c8ed6d Fixing swiftmailer config path and added missing config for dev env e4bdc3d Fixing path in Entity/Post
2 parents 73102db + 6db8ba9 commit 61c3194

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

config/packages/dev/swiftmailer.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
#swiftmailer:
2-
#delivery_address: [email protected]
1+
# See https://symfony.com/doc/current/email/dev_environment.html
2+
swiftmailer:
3+
# send all emails to a specific address
4+
#delivery_addresses: ['[email protected]']

src/Entity/Post.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Post
3535
{
3636
/**
3737
* Use constants to define configuration options that rarely change instead
38-
* of specifying them in app/config/config.yml.
38+
* of specifying them under parameters section in config/services.yaml file.
3939
*
4040
* See https://symfony.com/doc/current/best_practices/configuration.html#constants-vs-configuration-options
4141
*/

src/EventSubscriber/CommentNotificationSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function onCommentCreated(GenericEvent $event): void
7272
->setBody($body, 'text/html')
7373
;
7474

75-
// In app/config/config_dev.yml the 'disable_delivery' option is set to 'true'.
75+
// In config/packages/dev/swiftmailer.yaml the 'disable_delivery' option is set to 'true'.
7676
// That's why in the development environment you won't actually receive any email.
7777
// However, you can inspect the contents of those unsent emails using the debug toolbar.
7878
// See https://symfony.com/doc/current/email/dev_environment.html#viewing-from-the-web-debug-toolbar

src/Twig/AppExtension.php

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
*
2424
* See https://symfony.com/doc/current/cookbook/templating/twig_extension.html
2525
*
26-
* In addition to creating the Twig extension class, before using it you must also
27-
* register it as a service. See app/config/services.yml file for details.
28-
*
2926
* @author Ryan Weaver <[email protected]>
3027
* @author Javier Eguiluz <[email protected]>
3128
* @author Julien ITARD <[email protected]>

0 commit comments

Comments
 (0)