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>
|
@@ -0,0 +1,53 @@
|
||||
{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}
|
||||
|
||||
{% block toolbar %}
|
||||
{% if collector.messagecount %}
|
||||
{% set icon %}
|
||||
<img width="23" height="28" alt="Swiftmailer" src="data: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Q5NTUyMjQ5OEUxMUUwODc3MkE1MTY4ODBDMzEzNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PpkRnSAAAAJ0SURBVHjaYvz//z8DrQATAw3BqOFYAaO9vT1FBhw4cGCAXA5MipxBQUHT3r17l0AVAxkZ/wkLC89as2ZNIcjlYkALXKnlWqBZTH/+/PEDmQsynLW/v3+NoaHhN2oYDjJn8uTJK4BMNpDhPwsLCwOKiop2+fn5vafEYC8vrw8gc/Lz8wOB3B8gw/nev38vn5WV5eTg4LA/Ly/vESsrK2npmYmJITU19SnQ8L0gc4DxpwgyF2S4EEjB58+f+crLy31YWFjOt7S0XBYUFPxHjMEcHBz/6+rqboqJiZ0qKSnxBpkDlRICGc4MU/j792+2CRMm+L18+fLSxIkTDykoKPzBZ7CoqOi/np6eE8rKylvb29v9fvz4wYEkzYKRzjk5OX/LyMjcnDRpEkjjdisrK6wRraOj8wvokAMLFy788ejRoxcaGhrPCWai4ODgB8DUE3/mzBknYMToASNoMzAfvEVW4+Tk9LmhoWFbTU2NwunTpx2BjiiMjo6+hm4WCzJHUlLyz+vXrxkfP36sDOI/ffpUPikpibe7u3sLsJjQW7VqlSrQxe+Avjmanp7u9PbtWzGQOmCCkARmmu/m5uYfT548yY/V5UpKSl+2b9+uiiz26dMnIWBSDTp27NgdYGrYCIzwE7m5uR4wg2Hg/PnzSsDI/QlKOcjZ3wGUBLm5uf+DwLdv38gub4AG/xcSEvr35s0bZmCB5sgCE/z69SsjyDJKMtG/f/8YQQYD8wkoGf8H51AbG5sH1CpbQBnQ09PzBiiHgoIFFHlBQGwLxLxUMP8dqJgH4k3gIhfIkAKVYkDMTmmhCHIxEL8A4peMo02L4WU4QIABANxZAoDIQDv3AAAAAElFTkSuQmCC" />
|
||||
<span class="sf-toolbar-status">{{ collector.messageCount }}</span>
|
||||
{% endset %}
|
||||
{% set text %}
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>Messages</b>
|
||||
<span>{{ collector.messageCount }}</span>
|
||||
</div>
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>Is spooled ?</b>
|
||||
<span>{{ collector.isSpool ? 'yes' : 'no' }}</span>
|
||||
</div>
|
||||
{% endset %}
|
||||
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
<span class="label">
|
||||
<span class="icon"><img src="{{ asset('bundles/webprofiler/images/profiler/mail.png') }}" alt="Configuration" /></span>
|
||||
<strong>E-Mails</strong>
|
||||
<span class="count">
|
||||
<span>{{ collector.messagecount }}</span>
|
||||
</span>
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
<h2>Messages {{ collector.isSpool ? 'spooled' : 'sent' }}</h2>
|
||||
|
||||
{% if not collector.messages %}
|
||||
<p>
|
||||
<em>No message sent.</em>
|
||||
</p>
|
||||
{% else %}
|
||||
{% for i, message in collector.messages %}
|
||||
<h3>Message {{ i + 1 }} / {{ collector.messagecount }}</h3>
|
||||
|
||||
{% for header in message.headers.all %}
|
||||
<pre>{{ header }}</pre>
|
||||
{% endfor %}
|
||||
|
||||
<p>
|
||||
<pre>{{ message.body|e('html', message.charset)|convert_encoding('UTF-8', message.charset) }}</pre>
|
||||
</p>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user