Commit Graph

104 Commits

Author SHA1 Message Date
Fabien Potencier
25e99e894b renamed Command to ContainerAwareCommand 2011-06-20 21:04:55 +02:00
Fabien Potencier
e62a135d53 [Swiftmailer] removed the blackhole plugin configuration 2011-06-16 18:04:52 +02:00
Fabien Potencier
b3fa8bf7cb [Swiftmailer] allowed any service to be used as a transport (closes #1337) 2011-06-15 17:08:59 +02:00
Fabien Potencier
52697ed3df [Swiftmailer] changed disable_strategy behavior
The blackhole plugin that was used previously stop the propagation
of events, which means that the behavior can be slightly different
depending on the order of plugin registrations.

Instead, we now use the null transport to avoid this issue.
2011-06-15 12:18:07 +02:00
Fabien Potencier
1aabc5da64 fixed CS 2011-06-08 12:16:48 +02:00
Fabien Potencier
48733b927d [Swiftmailer] added the swiftmailer.plugin tag to automatically register Swiftmailer plugins 2011-06-06 14:48:42 +02:00
Fabien Potencier
a5daf4706a [SwiftmailerBundle] updated XSD 2011-06-06 14:43:36 +02:00
Fabien Potencier
b83aa9d006 [SwiftmailerBundle] fixed previous merge 2011-06-06 14:25:17 +02:00
Fabien Potencier
ce4a49d648 merged arjenjb/swift-antiflood-plugin 2011-06-06 14:21:20 +02:00
arjen
df02c05271 Removed plugin from SF 2011-05-31 14:31:23 +02:00
arjen
ed4f659693 [SwiftmailerBundle] Added ImpersonateSenderPlugin 2011-05-31 13:34:06 +02:00
Pascal Borreli
824e48efa7 [Various] Fixed phpdoc 2011-05-29 23:33:36 +00:00
arjen
59b4b67548 Fixed Configuration 2011-05-29 10:37:24 +02:00
arjen
9012eacfd7 Fixed indenting 2011-05-27 16:04:32 +02:00
arjen
499282f278 [SwiftmailerBundle] Added support for AntiFloodPlugin 2011-05-27 15:03:46 +02:00
Fabien Potencier
da09411e14 [SwiftmailerBundle] optimized code 2011-05-27 07:33:04 +02:00
Fabien Potencier
5ed136b3f1 [SwiftMailer] optimized configuration
* Removed the requirement of the init.php file when getting the Swift_Mailer object (must now be done via autoloading -- see Symfony SE)
* Changed the data collector to avoid loading Swiftmailer when no email has been send
2011-05-26 22:29:28 +02:00
Lukas Kahwe Smith
dbdf4ad750 cosmetic tweak (use defaultFalse() instead of defaultValue(false)) 2011-04-26 09:50:41 +02:00
Eriksen Costa
888eaf1b2f fixed typos and CS 2011-04-25 02:17:15 -03:00
Pascal Borreli
8c0beea677 [Phpdoc] Cleaning/fixing 2011-04-23 15:18:47 +00:00
Brikou CARRE
e898445b94 removed empty lines/trailing spaces 2011-04-15 21:12:02 +02:00
Victor Berchet
b640fcb0f0 [Config] Introduction of an ConfigurationInterface 2011-04-05 11:26:28 +02:00
Fabien Potencier
f232b3cdda reverted Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names' 2011-04-04 11:10:56 +02:00
Fabien Potencier
6cd77f75c9 [SwiftmailerBundle] removed obsolete parameter 2011-03-30 20:47:13 +02:00
Fabien Potencier
0ae108d13f [SwiftmailerBundle] fixed indentation in XML files 2011-03-30 20:42:56 +02:00
Fabien Potencier
ff5dd41471 [SwiftmailerBundle] removed the swiftmailer.base_dir parameter 2011-03-30 20:39:47 +02:00
Kris Wallsmith
ade83e2e80 updated codebase to use shorter bundle names
Controllers:
"BlogBundle:Post:show" is now "Blog:Post:show"

Templates:
"BlogBundle:Post:show.html.twig" is now "Blog:Post:show.html.twig"

Resources:
"@BlogBundle/Resources/config/blog.xml" is now "@Blog/Resources/config/blog.xml"

Doctrine:
"$em->find('BlogBundle:Post', $id)" is now "$em->find('Blog:Post', $id)"
2011-03-27 06:25:43 -07:00
Ryan Weaver
6799090a4f [SwiftmailerBundle] Allow for the Swift_NullTransport to be chosen in the Configuration class 2011-03-26 10:20:36 -05:00
Clément Jobeili
34e3574e2b [SwiftmailerBundle] Change Twig if syntax in panel info 2011-03-21 09:16:28 +01:00
Clément Jobeili
f8dead7782 Change Message sent text to Message spooled if we are in a spool context 2011-03-21 09:01:50 +01:00
Fabien Potencier
9d8c053d42 updated icons for swiftmailer and security 2011-03-18 15:19:39 +01:00
Victor Berchet
a96b1fb48b [SwiftMailerBundle] Fix a merge issue in the configuration 2011-03-17 18:00:02 +01:00
Victor Berchet
1e0ed22c55 [Config] Component refactoring
The Config component API have changed and the extension configuration files must be updated accordingly:

1. Array nodes must enclosed their children definition in ->children() ... ->end() calls:

Before:

    $treeBuilder->root('zend', 'array')
        ->arrayNode('logger')
            ->scalarNode('priority')->defaultValue('INFO')->end()
            ->booleanNode('log_errors')->defaultFalse()->end()
        ->end();

After:

    $treeBuilder->root('zend', 'array')
        ->children()
            ->arrayNode('logger')
                ->children()
                    ->scalarNode('priority')->defaultValue('INFO')->end()
                    ->booleanNode('log_errors')->defaultFalse()->end()
                ->end()
            ->end()
        ->end();

2. The 'builder' method (in NodeBuilder) has been dropped in favor of an 'append' method (in ArrayNodeDefinition)

Before:

    $treeBuilder->root('doctrine', 'array')
        ->arrayNode('dbal')
            ->builder($this->getDbalConnectionsNode())
        ->end();

After:

    $treeBuilder->root('doctrine', 'array')
        ->children()
            ->arrayNode('dbal')
                ->append($this->getDbalConnectionsNode())
            ->end()
        ->end();

3. The root of a TreeBuilder is now an NodeDefinition (and most probably an ArrayNodeDefinition):

Before:

    $root = $treeBuilder->root('doctrine', 'array');
    $this->addDbalSection($root);

    public function addDbalSection(NodeBuilder $node)
    {
        ...
    }

After:

    $root = $treeBuilder->root('doctrine', 'array');
    $this->addDbalSection($root);

    public function addDbalSection(ArrayNodeDefinition $node)
    {
        ...
    }

4. The NodeBuilder API has changed (this is seldom used):

Before:

    $node = new NodeBuilder('connections', 'array');

After:

The recommended way is to use a tree builder:

    $treeBuilder = new TreeBuilder();
    $node = $treeBuilder->root('connections', 'array');

An other way would be:

    $builder = new NodeBuilder();
    $node = $builder->node('connections', 'array');

Some notes:

- Tree root nodes should most always be array nodes, so this as been made the default:

    $treeBuilder->root('doctrine', 'array') is equivalent to $treeBuilder->root('doctrine')

- There could be more than one ->children() ... ->end() sections. This could help with the readability:

    $treeBuilder->root('doctrine')
        ->children()
            ->scalarNode('default_connection')->end()
        ->end()
        ->fixXmlConfig('type')
        ->children()
            ->arrayNode('types')
                ....
            ->end()
        ->end()
2011-03-17 16:26:15 +01:00
Christophe Coevoet
da938adade [SwiftmailerBundle] Changed the default logging value to kernel.debug 2011-03-17 13:35:41 +01:00
Fabien Potencier
b0948063b2 [SwiftmailerBundle] tweaked profiler template 2011-03-17 08:14:44 +01:00
Fabien Potencier
8c6f135534 [SwiftmailerBundle] made data collector configurable via the logging option 2011-03-17 08:12:18 +01:00
Fabien Potencier
610ddf0e74 [SwiftmailerBundle] fixed typo 2011-03-17 07:38:02 +01:00
Fabien Potencier
c2bc35d0e6 [SwiftmailerBundle] renamed data collector 2011-03-17 07:38:02 +01:00
Fabien Potencier
3346e291f2 [SwiftmailerBundle] added the mailer as a dependency to the data collector to ensure that Swiftmailer is always initialized 2011-03-17 07:37:59 +01:00
Fabien Potencier
bde928be86 [SwiftmailerBundle] re-added phpdoc from symfony 1.4 and simplified code copy and pasted from symfony 1.4 2011-03-17 07:36:18 +01:00
Clément Jobeili
463591afbe Add Licence and Documentation 2011-03-16 18:22:38 +01:00
Clément Jobeili
1342752e7e Add the message body et charset 2011-03-16 18:21:43 +01:00
Clément Jobeili
df08655e97 Add a DataCollector for the SwiftmailerBundle 2011-03-16 17:57:04 +01:00
Fabien Potencier
8c423edfef replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
Fabien Potencier
7a614cb1ea [Swiftmailer] fixed the determination of the default port 2011-02-21 11:35:47 +01:00
Christophe Coevoet
e729589b10 Splitted swiftmailer configuration to avoid issues when not using smtp 2011-02-21 10:41:15 +01:00
Fabien Potencier
eb5877c16a fixed case problem 2011-02-20 10:11:55 +01:00
Fabien Potencier
23e9386a0e changed all extensions to use the default Extension::getAlias() impl 2011-02-20 08:58:37 +01:00
Fabien Potencier
3cbbd66d33 Merge remote branch 'dator/send_email_command'
* dator/send_email_command:
  Fix description
  Add an example using the options in the help message
  Fix CS
  [SwiftMailer] Add the SendEmail Command (for the spool)
2011-02-19 15:40:45 +01:00
Ryan Weaver
663dcbcb32 [SwiftmailerBundle] Removing unnecessary "enabled" key in a test.
I double-checked with Stof - this is obviously unnecessary and there was no meaning behind including it. This caused the test to fail with the new validation.
2011-02-18 07:55:39 -06:00