8000 [DependencyInjection] added some usage examples in the PHPDoc · Dahipster/symfony@11acd0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 11acd0e

Browse files
committed
[DependencyInjection] added some usage examples in the PHPDoc
1 parent 008d9da commit 11acd0e

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

src/Symfony/Components/DependencyInjection/Loader/Extension/DoctrineExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class DoctrineExtension extends LoaderExtension
2727
/**
2828
* Loads the DBAL configuration.
2929
*
30+
* Usage example:
31+
*
32+
* <doctrine:dbal dbname="sfweb" username="root" />
33+
*
3034
* @param array $config A configuration array
3135
*
3236
* @return BuilderConfiguration A BuilderConfiguration instance

src/Symfony/Components/DependencyInjection/Loader/Extension/SwiftMailerExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ class SwiftMailerExtension extends LoaderExtension
2727
/**
2828
* Loads the Swift Mailer configuration.
2929
*
30+
* Usage example:
31+
*
32+
* <swift:mailer transport="gmail" delivery_strategy="spool">
33+
* <swift:username>fabien</swift:username>
34+
* <swift:password>xxxxx</swift:password>
35+
* <swift:spool path="/path/to/spool/" />
36+
* </swift:mailer>
37+
*
3038
* @param array $config A configuration array
3139
*
3240
* @return BuilderConfiguration A BuilderConfiguration instance

src/Symfony/Components/DependencyInjection/Loader/Extension/SymfonyTemplatingExtension.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@
2626
class SymfonyTemplatingExtension extends LoaderExtension
2727
{
2828
/**
29-
* Loads the template configuration.
29+
* Loads the templating configuration.
30+
*
31+
* Usage example:
32+
*
33+
* <symfony:templating path="/path/to/templates" cache="/path/to/cache">
34+
* <symfony:loader>symfony.templating.loader.filesystem</symfony:loader>
35+
* <symfony:helper>symfony.templating.helper.javascripts</symfony:helper>
36+
* <symfony:helper>symfony.templating.helper.stylesheets</symfony:helper>
37+
* </symfony:templating>
3038
*
3139
* @param array $config A configuration array
3240
*

src/Symfony/Components/DependencyInjection/Loader/Extension/ZendExtension.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class ZendExtension extends LoaderExtension
2727
/**
2828
* Loads the logger configuration.
2929
*
30+
* Usage example:
31+
*
32+
* <zend:logger priority="info" path="/path/to/some.log" />
33+
*
3034
* @param array $config A configuration array
3135
*
3236
* @return BuilderConfiguration A BuilderConfiguration instance
@@ -54,6 +58,13 @@ public function loggerLoad($config)
5458
/**
5559
* Loads the mail configuration.
5660
*
61+
* Usage example:
62+
*
63+
* <zend:mail transport="gmail">
64+
* <zend:username>fabien</zend:username>
65+
* <zend:password>xxxxxx</zend:password>
66+
* </zend:mail>
67+
*
5768
* @param array $config A configuration array
5869
*
5970
* @return BuilderConfiguration A BuilderConfiguration instance

0 commit comments

Comments
 (0)
0