Initial commit with Symfony 2.1+Vendors
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<xsd:schema xmlns="http://symfony.com/schema/dic/swiftmailer"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://symfony.com/schema/dic/swiftmailer"
|
||||
elementFormDefault="qualified">
|
||||
|
||||
<xsd:element name="config" type="config" />
|
||||
|
||||
<xsd:complexType name="config">
|
||||
<xsd:all>
|
||||
<xsd:element name="spool" type="spool" minOccurs="0" maxOccurs="1" />
|
||||
<xsd:element name="antiflood" type="antiflood" minOccurs="0" maxOccurs="1" />
|
||||
</xsd:all>
|
||||
|
||||
<xsd:attribute name="username" type="xsd:string" />
|
||||
<xsd:attribute name="password" type="xsd:string" />
|
||||
<xsd:attribute name="host" type="xsd:string" />
|
||||
<xsd:attribute name="port" type="xsd:string" />
|
||||
<xsd:attribute name="encryption" type="encryption" />
|
||||
<xsd:attribute name="auth-mode" type="auth_mode" />
|
||||
<xsd:attribute name="transport" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="delivery-address" type="xsd:string" />
|
||||
<xsd:attribute name="disable-delivery" type="xsd:boolean" />
|
||||
<xsd:attribute name="sender-address" type="xsd:boolean" />
|
||||
<xsd:attribute name="logging" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="spool">
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="path" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="antiflood">
|
||||
<xsd:attribute name="threshold" type="xsd:string" />
|
||||
<xsd:attribute name="sleep" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="encryption">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="tls" />
|
||||
<xsd:enumeration value="ssl" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="auth_mode">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="plain" />
|
||||
<xsd:enumeration value="login" />
|
||||
<xsd:enumeration value="cram-md5" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="delivery_strategy">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="realtime" />
|
||||
<xsd:enumeration value="spool" />
|
||||
<xsd:enumeration value="single-address" />
|
||||
<xsd:enumeration value="none" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
</xsd:schema>
|
27
vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/Resources/config/smtp.xml
vendored
Normal file
27
vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/Resources/config/smtp.xml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
|
||||
<parameters>
|
||||
<parameter key="swiftmailer.transport.smtp.class">Swift_Transport_EsmtpTransport</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
<service id="swiftmailer.transport.smtp" class="%swiftmailer.transport.smtp.class%" public="false">
|
||||
<argument type="service" id="swiftmailer.transport.buffer" />
|
||||
<argument type="collection">
|
||||
<argument type="service" id="swiftmailer.transport.authhandler" />
|
||||
</argument>
|
||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
||||
|
||||
<call method="setHost"><argument>%swiftmailer.transport.smtp.host%</argument></call>
|
||||
<call method="setPort"><argument>%swiftmailer.transport.smtp.port%</argument></call>
|
||||
<call method="setEncryption"><argument>%swiftmailer.transport.smtp.encryption%</argument></call>
|
||||
<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>
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
18
vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/Resources/config/spool.xml
vendored
Normal file
18
vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/Resources/config/spool.xml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
|
||||
<parameters>
|
||||
<parameter key="swiftmailer.plugin.redirecting.class">Swift_Plugins_RedirectingPlugin</parameter>
|
||||
<parameter key="swiftmailer.plugin.blackhole.class">Swift_Plugins_BlackholePlugin</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
<service id="swiftmailer.transport.spool" class="Swift_Transport_SpoolTransport" public="false">
|
||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
||||
<argument type="service" id="swiftmailer.spool" />
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
|
||||
<parameters>
|
||||
<parameter key="swiftmailer.spool.file.class">Swift_FileSpool</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
<service id="swiftmailer.spool.file" class="%swiftmailer.spool.file.class%" public="false">
|
||||
<argument>%swiftmailer.spool.file.path%</argument>
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
|
||||
<parameters>
|
||||
<parameter key="swiftmailer.spool.memory.class">Swift_MemorySpool</parameter>
|
||||
<parameter key="swiftmailer.email_sender.listener.class">Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
<service id="swiftmailer.spool.memory" class="%swiftmailer.spool.memory.class%" public="false" />
|
||||
|
||||
<service id="swiftmailer.email_sender.listener" class="%swiftmailer.email_sender.listener.class%">
|
||||
<tag name="kernel.event_subscriber" />
|
||||
<argument type="service" id="service_container" />
|
||||
</service>
|
||||
</services>
|
||||
</container>
|
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<container xmlns="http://symfony.com/schema/dic/services"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||
|
||||
<parameters>
|
||||
<parameter key="swiftmailer.class">Swift_Mailer</parameter>
|
||||
|
||||
<parameter key="swiftmailer.transport.sendmail.class">Swift_Transport_SendmailTransport</parameter>
|
||||
<parameter key="swiftmailer.transport.mail.class">Swift_Transport_MailTransport</parameter>
|
||||
|
||||
<parameter key="swiftmailer.transport.failover.class">Swift_Transport_FailoverTransport</parameter>
|
||||
|
||||
<parameter key="swiftmailer.plugin.redirecting.class">Swift_Plugins_RedirectingPlugin</parameter>
|
||||
<parameter key="swiftmailer.plugin.impersonate.class">Swift_Plugins_ImpersonatePlugin</parameter>
|
||||
<parameter key="swiftmailer.plugin.messagelogger.class">Swift_Plugins_MessageLogger</parameter>
|
||||
<parameter key="swiftmailer.plugin.antiflood.class">Swift_Plugins_AntiFloodPlugin</parameter>
|
||||
<parameter key="swiftmailer.plugin.antiflood.threshold">99</parameter>
|
||||
<parameter key="swiftmailer.plugin.antiflood.sleep">0</parameter>
|
||||
|
||||
<parameter key="swiftmailer.data_collector.class">Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
<service id="swiftmailer.mailer" class="%swiftmailer.class%" public="false">
|
||||
<argument type="service" id="swiftmailer.transport" />
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.transport.sendmail" class="%swiftmailer.transport.sendmail.class%" public="false">
|
||||
<argument type="service" id="swiftmailer.transport.buffer" />
|
||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.transport.mail" class="%swiftmailer.transport.mail.class%" public="false">
|
||||
<argument type="service" id="swiftmailer.transport.mailinvoker" />
|
||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.transport.failover" class="%swiftmailer.transport.failover.class%" public="false" />
|
||||
|
||||
<service id="swiftmailer.transport.mailinvoker" class="Swift_Transport_SimpleMailInvoker" public="false" />
|
||||
|
||||
<service id="swiftmailer.transport.buffer" class="Swift_Transport_StreamBuffer" public="false">
|
||||
<argument type="service" id="swiftmailer.transport.replacementfactory" />
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.transport.authhandler" class="Swift_Transport_Esmtp_AuthHandler" public="false">
|
||||
<argument type="collection">
|
||||
<argument type="service"><service class="Swift_Transport_Esmtp_Auth_CramMd5Authenticator" public="false" /></argument>
|
||||
<argument type="service"><service class="Swift_Transport_Esmtp_Auth_LoginAuthenticator" public="false" /></argument>
|
||||
<argument type="service"><service class="Swift_Transport_Esmtp_Auth_PlainAuthenticator" public="false" /></argument>
|
||||
</argument>
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.transport.eventdispatcher" class="Swift_Events_SimpleEventDispatcher" public="false" />
|
||||
|
||||
<service id="swiftmailer.transport.replacementfactory" class="Swift_StreamFilters_StringReplacementFilterFactory" public="false" />
|
||||
|
||||
<service id="swiftmailer.transport.null" class="Swift_Transport_NullTransport" public="false">
|
||||
<argument type="service" id="swiftmailer.transport.eventdispatcher" />
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.plugin.redirecting" class="%swiftmailer.plugin.redirecting.class%" public="false">
|
||||
<argument>%swiftmailer.single_address%</argument>
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.plugin.antiflood" class="%swiftmailer.plugin.antiflood.class%" public="false">
|
||||
<argument>%swiftmailer.plugin.antiflood.threshold%</argument>
|
||||
<argument>%swiftmailer.plugin.antiflood.sleep%</argument>
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.plugin.impersonate" class="%swiftmailer.plugin.impersonate.class%" public="false">
|
||||
<argument>%swiftmailer.sender_address%</argument>
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.plugin.messagelogger" class="%swiftmailer.plugin.messagelogger.class%" />
|
||||
|
||||
<service id="swiftmailer.data_collector" class="%swiftmailer.data_collector.class%" public="false">
|
||||
<argument type="service" id="service_container" />
|
||||
<argument>%swiftmailer.spool.enabled%</argument>
|
||||
</service>
|
||||
|
||||
<service id="swiftmailer.transport" alias="swiftmailer.transport.smtp" public="false" />
|
||||
</services>
|
||||
</container>
|
Reference in New Issue
Block a user