Upgraded to Symfony 2.1-beta2
This commit is contained in:
@@ -53,6 +53,8 @@ class Configuration implements ConfigurationInterface
|
||||
->scalarNode('password')->defaultNull()->end()
|
||||
->scalarNode('host')->defaultValue('localhost')->end()
|
||||
->scalarNode('port')->defaultFalse()->end()
|
||||
->scalarNode('timeout')->defaultValue(30)->end()
|
||||
->scalarNode('source_ip')->defaultNull()->end()
|
||||
->scalarNode('encryption')
|
||||
->defaultNull()
|
||||
->validate()
|
||||
|
@@ -76,7 +76,7 @@ class SwiftmailerExtension extends Extension
|
||||
$config['port'] = 'ssl' === $config['encryption'] ? 465 : 25;
|
||||
}
|
||||
|
||||
foreach (array('encryption', 'port', 'host', 'username', 'password', 'auth_mode') as $key) {
|
||||
foreach (array('encryption', 'port', 'host', 'username', 'password', 'auth_mode', 'timeout', 'source_ip') as $key) {
|
||||
$container->setParameter('swiftmailer.transport.smtp.'.$key, $config[$key]);
|
||||
}
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
<xsd:attribute name="port" type="xsd:string" />
|
||||
<xsd:attribute name="encryption" type="encryption" />
|
||||
<xsd:attribute name="auth-mode" type="auth_mode" />
|
||||
<xsd:attribute name="timeout" type="xsd:string"/>
|
||||
<xsd:attribute name="source-ip" type="xsd:string"/>
|
||||
<xsd:attribute name="transport" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="delivery-address" type="xsd:string" />
|
||||
|
@@ -22,6 +22,8 @@
|
||||
<call method="setUsername"><argument>%swiftmailer.transport.smtp.username%</argument></call>
|
||||
<call method="setPassword"><argument>%swiftmailer.transport.smtp.password%</argument></call>
|
||||
<call method="setAuthMode"><argument>%swiftmailer.transport.smtp.auth_mode%</argument></call>
|
||||
<call method="setTimeout"><argument>%swiftmailer.transport.smtp.timeout%</argument></call>
|
||||
<call method="setSourceIp"><argument>%swiftmailer.transport.smtp.source_ip%</argument></call>
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
||||
|
@@ -18,8 +18,13 @@
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.2",
|
||||
"swiftmailer/swiftmailer": ">=4.1.8,<4.2-dev",
|
||||
"symfony/swiftmailer-bridge": "self.version"
|
||||
"swiftmailer/swiftmailer": ">=4.2.0,<4.3-dev",
|
||||
"symfony/swiftmailer-bridge": "2.1.*"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/dependency-injection": "2.1.*",
|
||||
"symfony/http-kernel": "2.1.*",
|
||||
"symfony/config": "2.1.*"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": { "Symfony\\Bundle\\SwiftmailerBundle": "" }
|
||||
@@ -27,7 +32,7 @@
|
||||
"target-dir": "Symfony/Bundle/SwiftmailerBundle",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.1.x-dev"
|
||||
"dev-master": "2.1-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
20
vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/phpunit.xml.dist
vendored
Normal file
20
vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/phpunit.xml.dist
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<phpunit colors="true" bootstrap="vendor/autoload.php">
|
||||
<testsuites>
|
||||
<testsuite name="SwiftmailerBundle for the Symfony Framework">
|
||||
<directory>./Tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory>.</directory>
|
||||
<exclude>
|
||||
<directory>./Resources</directory>
|
||||
<directory>./Tests</directory>
|
||||
<directory>./vendor</directory>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
Reference in New Issue
Block a user