-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #37849 [FrameworkBundle] Add missing mailer transports in xsd (l-vo)
This PR was merged into the 4.4 branch. Discussion ---------- [FrameworkBundle] Add missing mailer transports in xsd | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- c21df9b [FrameworkBundle] Add missing mailer transports in xsd
- Loading branch information
Showing
8 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/mailer_with_dsn.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
return static function (ContainerConfigurator $container) { | ||
$container->extension('framework', [ | ||
'mailer' => [ | ||
'dsn' => 'smtp://example.com', | ||
'envelope' => [ | ||
'sender' => 'sender@example.org', | ||
'recipients' => ['redirected@example.org', 'redirected1@example.org'], | ||
], | ||
], | ||
]); | ||
}; |
18 changes: 18 additions & 0 deletions
18
.../Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/mailer_with_transports.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
return static function (ContainerConfigurator $container) { | ||
$container->extension('framework', [ | ||
'mailer' => [ | ||
'transports' => [ | ||
'transport1' => 'smtp://example1.com', | ||
'transport2' => 'smtp://example2.com', | ||
], | ||
'envelope' => [ | ||
'sender' => 'sender@example.org', | ||
'recipients' => ['redirected@example.org', 'redirected1@example.org'], | ||
], | ||
], | ||
]); | ||
}; |
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
.../Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/mailer_with_transports.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:framework="http://symfony.com/schema/dic/symfony" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | ||
|
||
<framework:config> | ||
<framework:mailer> | ||
<framework:transport name="transport1">smtp://example1.com</framework:transport> | ||
<framework:transport name="transport2">smtp://example2.com</framework:transport> | ||
<framework:envelope> | ||
<framework:sender>sender@example.org</framework:sender> | ||
<framework:recipients>redirected@example.org</framework:recipients> | ||
<framework:recipients>redirected1@example.org</framework:recipients> | ||
</framework:envelope> | ||
</framework:mailer> | ||
</framework:config> | ||
</container> |
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
.../Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/mailer_with_transports.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
framework: | ||
mailer: | ||
transports: | ||
transport1: 'smtp://example1.com' | ||
transport2: 'smtp://example2.com' | ||
envelope: | ||
sender: sender@example.org | ||
recipients: | ||
- redirected@example.org | ||
- redirected1@example.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters