Parcourir la source

Maj sf 2.0.8 -> 2.0.11

bastien il y a 12 ans
Parent
révision
b54ed21fa6
100 fichiers modifiés avec 1048 ajouts et 671 suppressions
  1. 2 2
      app/bootstrap.php.cache
  2. 7 16
      deps
  3. 14 13
      deps.lock
  4. 2 1
      src/Muzich/CoreBundle/DataFixtures/ORM/LoadElementData.php
  5. 2 1
      src/Muzich/CoreBundle/DataFixtures/ORM/LoadGroupData.php
  6. 2 1
      src/Muzich/CoreBundle/DataFixtures/ORM/LoadTagData.php
  7. 2 1
      src/Muzich/CoreBundle/DataFixtures/ORM/LoadUsersElementsFavoritesData.php
  8. 2 1
      src/Muzich/CoreBundle/DataFixtures/ORM/LoadUsersTagsFavoritesData.php
  9. 2 1
      src/Muzich/UserBundle/DataFixtures/ORM/LoadUserData.php
  10. 1 1
      vendor/bundles/FOS/UserBundle
  11. 1 1
      vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php
  12. 3 0
      vendor/bundles/Sensio/Bundle/GeneratorBundle/Command/GenerateBundleCommand.php
  13. 1 1
      vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/BundleGenerator.php
  14. 1 1
      vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineCrudGenerator.php
  15. 1 1
      vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineEntityGenerator.php
  16. 1 1
      vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineFormGenerator.php
  17. 0 1
      vendor/bundles/Symfony/Bundle/AsseticBundle/Controller/AsseticController.php
  18. 1 1
      vendor/bundles/Symfony/Bundle/AsseticBundle/DependencyInjection/DirectoryResourceDefinition.php
  19. 0 2
      vendor/bundles/Symfony/Bundle/AsseticBundle/Resources/config/filters/coffee.xml
  20. 0 27
      vendor/bundles/Symfony/Bundle/AsseticBundle/composer.json
  21. 6 3
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Driver.php
  22. 1 1
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
  23. 1 1
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
  24. 16 10
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/OraclePlatform.php
  25. 3 2
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
  26. 1 0
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
  27. 3 3
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
  28. 35 17
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php
  29. 1 1
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Table.php
  30. 1 1
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/BigIntType.php
  31. 1 1
      vendor/doctrine-dbal/lib/Doctrine/DBAL/Version.php
  32. 15 1
      vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
  33. 16 1
      vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
  34. 5 0
      vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php
  35. 8 0
      vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php
  36. 8 0
      vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/PostgreSqlPlatformTest.php
  37. 76 0
      vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
  38. 1 1
      vendor/doctrine-fixtures
  39. 4 4
      vendor/doctrine/build.xml
  40. 1 1
      vendor/doctrine/composer.json
  41. 5 2
      vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
  42. 2 2
      vendor/doctrine/lib/Doctrine/ORM/Query/Expr.php
  43. 10 10
      vendor/doctrine/lib/Doctrine/ORM/Query/Expr/Composite.php
  44. 10 2
      vendor/doctrine/lib/Doctrine/ORM/Query/SqlWalker.php
  45. 28 6
      vendor/doctrine/lib/Doctrine/ORM/QueryBuilder.php
  46. 3 1
      vendor/doctrine/lib/Doctrine/ORM/Tools/EntityGenerator.php
  47. 2 2
      vendor/doctrine/lib/Doctrine/ORM/Tools/SchemaTool.php
  48. 9 0
      vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php
  49. 1 1
      vendor/doctrine/lib/Doctrine/ORM/Version.php
  50. 67 0
      vendor/doctrine/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1526Test.php
  51. 45 0
      vendor/doctrine/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1594Test.php
  52. 24 0
      vendor/doctrine/tests/Doctrine/Tests/ORM/Query/QueryTest.php
  53. 14 1
      vendor/doctrine/tests/Doctrine/Tests/ORM/QueryBuilderTest.php
  54. 9 0
      vendor/swiftmailer/CHANGES
  55. 1 1
      vendor/swiftmailer/VERSION
  56. 1 1
      vendor/swiftmailer/composer.json
  57. 96 106
      vendor/swiftmailer/doc/headers.rst
  58. 1 1
      vendor/swiftmailer/doc/including-the-files.rst
  59. 20 20
      vendor/swiftmailer/doc/installing.rst
  60. 110 122
      vendor/swiftmailer/doc/messages.rst
  61. 36 40
      vendor/swiftmailer/doc/plugins.rst
  62. 84 94
      vendor/swiftmailer/doc/sending.rst
  63. 10 8
      vendor/swiftmailer/lib/classes/Swift/FileSpool.php
  64. 8 0
      vendor/swiftmailer/lib/classes/Swift/MemorySpool.php
  65. 2 0
      vendor/swiftmailer/lib/classes/Swift/Spool.php
  66. 2 2
      vendor/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php
  67. 2 1
      vendor/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
  68. 1 0
      vendor/symfony/.travis.yml
  69. 36 0
      vendor/symfony/CHANGELOG-2.0.md
  70. 121 95
      vendor/symfony/CONTRIBUTORS.md
  71. 3 1
      vendor/symfony/check_cs
  72. 1 2
      vendor/symfony/composer.json
  73. 1 1
      vendor/symfony/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
  74. 1 1
      vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php
  75. 0 1
      vendor/symfony/src/Symfony/Bridge/Doctrine/composer.json
  76. 0 1
      vendor/symfony/src/Symfony/Bridge/Monolog/composer.json
  77. 0 1
      vendor/symfony/src/Symfony/Bridge/Swiftmailer/composer.json
  78. 1 1
      vendor/symfony/src/Symfony/Bridge/Twig/Extension/FormExtension.php
  79. 1 2
      vendor/symfony/src/Symfony/Bridge/Twig/composer.json
  80. 0 1
      vendor/symfony/src/Symfony/Bundle/DoctrineAbstractBundle/composer.json
  81. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php
  82. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php
  83. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php
  84. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php
  85. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/InfoDoctrineCommand.php
  86. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearMetadataCacheDoctrineCommand.php
  87. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearQueryCacheDoctrineCommand.php
  88. 1 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearResultCacheDoctrineCommand.php
  89. 2 2
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php
  90. 4 4
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php
  91. 0 1
      vendor/symfony/src/Symfony/Bundle/DoctrineBundle/composer.json
  92. 1 1
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php
  93. 1 1
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php
  94. 2 1
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
  95. 1 0
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php
  96. 1 1
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml
  97. 4 0
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xliff
  98. 4 0
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xliff
  99. 4 0
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xliff
  100. 0 0
      vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xliff

+ 2 - 2
app/bootstrap.php.cache Voir le fichier

@@ -456,7 +456,7 @@ abstract class Kernel implements KernelInterface
456 456
     protected $startTime;
457 457
     protected $classes;
458 458
 
459
-    const VERSION = '2.0.8';
459
+    const VERSION = '2.0.11';
460 460
 
461 461
     
462 462
     public function __construct($environment, $debug)
@@ -821,7 +821,7 @@ abstract class Kernel implements KernelInterface
821 821
     {
822 822
         $parameters = array();
823 823
         foreach ($_SERVER as $key => $value) {
824
-            if ('SYMFONY__' === substr($key, 0, 9)) {
824
+            if (0 === strpos($key, 'SYMFONY__')) {
825 825
                 $parameters[strtolower(str_replace('__', '.', substr($key, 9)))] = $value;
826 826
             }
827 827
         }

+ 7 - 16
deps Voir le fichier

@@ -1,10 +1,10 @@
1 1
 [symfony]
2 2
     git=http://github.com/symfony/symfony.git
3
-    version=v2.0.8
3
+    version=v2.0.11
4 4
 
5 5
 [twig]
6 6
     git=http://github.com/fabpot/Twig.git
7
-    version=v1.4.0
7
+    version=v1.6.0
8 8
 
9 9
 [monolog]
10 10
     git=http://github.com/Seldaek/monolog.git
@@ -16,15 +16,15 @@
16 16
 
17 17
 [doctrine-dbal]
18 18
     git=http://github.com/doctrine/dbal.git
19
-    version=2.1.5
19
+    version=2.1.6
20 20
 
21 21
 [doctrine]
22 22
     git=http://github.com/doctrine/doctrine2.git
23
-    version=2.1.5
23
+    version=2.1.6
24 24
 
25 25
 [swiftmailer]
26 26
     git=http://github.com/swiftmailer/swiftmailer.git
27
-    version=v4.1.4
27
+    version=v4.1.5
28 28
 
29 29
 [assetic]
30 30
     git=http://github.com/kriswallsmith/assetic.git
@@ -55,18 +55,9 @@
55 55
 [SensioGeneratorBundle]
56 56
     git=http://github.com/sensio/SensioGeneratorBundle.git
57 57
     target=/bundles/Sensio/Bundle/GeneratorBundle
58
+    version=origin/2.0
58 59
 
59 60
 [AsseticBundle]
60 61
     git=http://github.com/symfony/AsseticBundle.git
61 62
     target=/bundles/Symfony/Bundle/AsseticBundle
62
-
63
-[FOSUserBundle]
64
-    git=git://github.com/FriendsOfSymfony/FOSUserBundle.git
65
-    target=bundles/FOS/UserBundle
66
-
67
-[doctrine-fixtures]
68
-    git=http://github.com/doctrine/data-fixtures.git
69
-
70
-[DoctrineFixturesBundle]
71
-    git=http://github.com/symfony/DoctrineFixturesBundle.git
72
-    target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
63
+    version=v1.0.1

+ 14 - 13
deps.lock Voir le fichier

@@ -1,14 +1,15 @@
1
-symfony 5b4e6190c4420524e4dcaf51213c4ad78f646528
2
-twig 0b7d6dfa0cf0dfb6a3c5745b6434ebd6ea32e90e
3
-monolog b704c49a3051536f67f2d39f13568f74615b9922
4
-doctrine-common b886898821288d305862ee9c567cc5b5cbb4c0dc
5
-doctrine-dbal ae358bd94ec09d7d3ad92ca7820e67825ad9e5f4
6
-doctrine da0e3439aba4c8bf5e8a6ee4ccee5ce2624be8d1
7
-swiftmailer eb0ecaa4243efc46e0f54d87c6454e49aa4b62dd
8
-assetic f829ad23d23c87480151a21faad49fefe7c09e5d
9
-twig-extensions d75a453b4e1ad48216cc4803ba9095855f130774
10
-metadata 8717ad2a5689480765d9ffafe925cd8a2457e582
11
-SensioFrameworkExtraBundle 1c7e92f466d11f83130b0c1271f44d067a2c3b31
12
-JMSSecurityExtraBundle b8b7eb294ed83d83ca7260ac018e701f08003538
1
+symfony v2.0.11
2
+twig v1.6.0
3
+monolog 1.0.2
4
+doctrine-common 2.1.4
5
+doctrine-dbal 2.1.6
6
+doctrine 2.1.6
7
+swiftmailer v4.1.5
8
+assetic v1.0.2
9
+twig-extensions 1dfff8e793f50f651c4f74f796c2c68a4aee3147
10
+metadata 1.0.0
11
+SensioFrameworkExtraBundle 638f545b7020b9e9d5944a7e3167f60ed848250d
12
+JMSSecurityExtraBundle 541a4c242328dc04b99540c75346cc74a7c0cfb5
13 13
 SensioDistributionBundle 20b66a408084ad8752f98e50f10533f5245310bf
14
-SensioGeneratorBundle 87fe88c4c8dc09cb197ba4b2d6d5b834e2c64980
14
+SensioGeneratorBundle dd37fc4487bc09ac01bdcf89e0ff4ee4484b7fab
15
+AsseticBundle v1.0.1

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadElementData.php Voir le fichier

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4 4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5 6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6 7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
@@ -67,7 +68,7 @@ class LoadElementData  extends AbstractFixture implements OrderedFixtureInterfac
67 68
     return date('Y-m-d H:i:s', time() - 60 * 60 *24 * $ecal);
68 69
   }
69 70
   
70
-  public function load($entity_manager)
71
+  public function load(ObjectManager $entity_manager)
71 72
   {
72 73
     $this->entity_manager = $entity_manager;
73 74
     

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadGroupData.php Voir le fichier

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4 4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5 6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6 7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
@@ -75,7 +76,7 @@ class LoadGroupData  extends AbstractFixture implements OrderedFixtureInterface,
75 76
     }
76 77
   }
77 78
   
78
-  public function load($entity_manager)
79
+  public function load(ObjectManager $entity_manager)
79 80
   {
80 81
     $this->entity_manager = $entity_manager;
81 82
 

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadTagData.php Voir le fichier

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4 4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5 6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6 7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
@@ -35,7 +36,7 @@ class LoadTagData  extends AbstractFixture implements OrderedFixtureInterface, C
35 36
     $this->addReference('tag_'.strtolower(str_replace(' ', '-', $name)), $tag);
36 37
   }
37 38
   
38
-  public function load($entity_manager)
39
+  public function load(ObjectManager $entity_manager)
39 40
   {
40 41
     $this->entity_manager = $entity_manager;
41 42
 

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadUsersElementsFavoritesData.php Voir le fichier

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4 4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5 6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6 7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
@@ -36,7 +37,7 @@ class LoadUsersElementsFavoritesData  extends AbstractFixture implements Ordered
36 37
     //$this->addReference('user_tag_'.$user->getId().'_'.$tag->getId(), $userTag);
37 38
   }
38 39
   
39
-  public function load($entity_manager)
40
+  public function load(ObjectManager $entity_manager)
40 41
   {
41 42
     $this->entity_manager = $entity_manager;
42 43
 

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadUsersTagsFavoritesData.php Voir le fichier

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4 4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5 6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6 7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
@@ -37,7 +38,7 @@ class LoadUsersTagsFavoritesData  extends AbstractFixture implements OrderedFixt
37 38
     //$this->addReference('user_tag_'.$user->getId().'_'.$tag->getId(), $userTag);
38 39
   }
39 40
   
40
-  public function load($entity_manager)
41
+  public function load(ObjectManager $entity_manager)
41 42
   {
42 43
     $this->entity_manager = $entity_manager;
43 44
 

+ 2 - 1
src/Muzich/UserBundle/DataFixtures/ORM/LoadUserData.php Voir le fichier

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4 4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5 6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6 7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7 8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
@@ -65,7 +66,7 @@ class LoadUserData extends AbstractFixture implements OrderedFixtureInterface, C
65 66
     $this->entity_manager->persist($heFollowHim);
66 67
   }
67 68
   
68
-  public function load($entity_manager)
69
+  public function load(ObjectManager $entity_manager)
69 70
   {
70 71
     
71 72
     $this->entity_manager = $entity_manager;

+ 1 - 1
vendor/bundles/FOS/UserBundle

@@ -1 +1 @@
1
-Subproject commit 2fed320b14593455d6e821d081f76ee27cb0a8e1
1
+Subproject commit a0e50724825fd73531a563f514168d8536b9187e

+ 1 - 1
vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php Voir le fichier

@@ -104,7 +104,7 @@ class DoctrineParamConverter implements ParamConverterInterface
104 104
     protected function getOptions(ConfigurationInterface $configuration)
105 105
     {
106 106
         return array_replace(array(
107
-            'entity_manager' => 'default',
107
+            'entity_manager' => null,
108 108
         ), $configuration->getOptions());
109 109
     }
110 110
 }

+ 3 - 0
vendor/bundles/Sensio/Bundle/GeneratorBundle/Command/GenerateBundleCommand.php Voir le fichier

@@ -145,6 +145,9 @@ EOT
145 145
             'sub-namespaces, and it should end with the bundle name itself',
146 146
             '(which must have <comment>Bundle</comment> as a suffix).',
147 147
             '',
148
+            'See http://symfony.com/doc/current/cookbook/bundles/best_practices.html#index-1 for more',
149
+            'details on bundle naming conventions.',
150
+            '',
148 151
             'Use <comment>/</comment> instead of <comment>\\</comment> for the namespace delimiter to avoid any problem.',
149 152
             '',
150 153
         ));

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/BundleGenerator.php Voir le fichier

@@ -11,7 +11,7 @@
11 11
 
12 12
 namespace Sensio\Bundle\GeneratorBundle\Generator;
13 13
 
14
-use Symfony\Component\HttpKernel\Util\Filesystem;
14
+use Symfony\Component\Filesystem\Filesystem;
15 15
 use Symfony\Component\DependencyInjection\Container;
16 16
 
17 17
 /**

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineCrudGenerator.php Voir le fichier

@@ -11,7 +11,7 @@
11 11
 
12 12
 namespace Sensio\Bundle\GeneratorBundle\Generator;
13 13
 
14
-use Symfony\Component\HttpKernel\Util\Filesystem;
14
+use Symfony\Component\Filesystem\Filesystem;
15 15
 use Symfony\Component\HttpKernel\Bundle\BundleInterface;
16 16
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
17 17
 

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineEntityGenerator.php Voir le fichier

@@ -11,7 +11,7 @@
11 11
 
12 12
 namespace Sensio\Bundle\GeneratorBundle\Generator;
13 13
 
14
-use Symfony\Component\HttpKernel\Util\Filesystem;
14
+use Symfony\Component\Filesystem\Filesystem;
15 15
 use Symfony\Component\HttpKernel\Bundle\BundleInterface;
16 16
 use Symfony\Bridge\Doctrine\RegistryInterface;
17 17
 use Doctrine\ORM\Mapping\ClassMetadataInfo;

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineFormGenerator.php Voir le fichier

@@ -11,7 +11,7 @@
11 11
 
12 12
 namespace Sensio\Bundle\GeneratorBundle\Generator;
13 13
 
14
-use Symfony\Component\HttpKernel\Util\Filesystem;
14
+use Symfony\Component\Filesystem\Filesystem;
15 15
 use Symfony\Component\HttpKernel\Bundle\BundleInterface;
16 16
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
17 17
 

+ 0 - 1
vendor/bundles/Symfony/Bundle/AsseticBundle/Controller/AsseticController.php Voir le fichier

@@ -58,7 +58,6 @@ class AsseticController
58 58
         }
59 59
 
60 60
         $response = $this->createResponse();
61
-        $response->setExpires(new \DateTime());
62 61
 
63 62
         // last-modified
64 63
         if (null !== $lastModified = $asset->getLastModified()) {

+ 1 - 1
vendor/bundles/Symfony/Bundle/AsseticBundle/DependencyInjection/DirectoryResourceDefinition.php Voir le fichier

@@ -68,7 +68,7 @@ class DirectoryResourceDefinition extends Definition
68 68
             ->addArgument(new Reference('templating.loader'))
69 69
             ->addArgument($bundle)
70 70
             ->addArgument($dir)
71
-            ->addArgument('/\.[^.]+\.'.$engine.'$/')
71
+            ->addArgument('/^[^.]+\.[^.]+\.'.$engine.'$/')
72 72
             ->setPublic(false)
73 73
         ;
74 74
     }

+ 0 - 2
vendor/bundles/Symfony/Bundle/AsseticBundle/Resources/config/filters/coffee.xml Voir le fichier

@@ -8,7 +8,6 @@
8 8
         <parameter key="assetic.filter.coffee.class">Assetic\Filter\CoffeeScriptFilter</parameter>
9 9
         <parameter key="assetic.filter.coffee.bin">/usr/bin/coffee</parameter>
10 10
         <parameter key="assetic.filter.coffee.node">%assetic.node.bin%</parameter>
11
-        <parameter key="assetic.filter.coffee.bare">null</parameter>
12 11
     </parameters>
13 12
 
14 13
     <services>
@@ -16,7 +15,6 @@
16 15
             <tag name="assetic.filter" alias="coffee" />
17 16
             <argument>%assetic.filter.coffee.bin%</argument>
18 17
             <argument>%assetic.filter.coffee.node%</argument>
19
-            <call method="setBare"><argument>%assetic.filter.coffee.bare%</argument></call>
20 18
         </service>
21 19
     </services>
22 20
 </container>

+ 0 - 27
vendor/bundles/Symfony/Bundle/AsseticBundle/composer.json Voir le fichier

@@ -1,27 +0,0 @@
1
-{
2
-    "name": "symfony/assetic-bundle",
3
-    "description": "Integrates Assetic into Symfony2",
4
-    "keywords": ["assets", "compression", "minification"],
5
-    "homepage": "https://github.com/symfony/AsseticBundle",
6
-    "type": "symfony-bundle",
7
-    "license": "MIT",
8
-    "authors": [
9
-        {
10
-            "name": "Kris Wallsmith",
11
-            "email": "kris.wallsmith@gmail.com",
12
-            "homepage": "http://kriswallsmith.net/"
13
-        }
14
-    ],
15
-    "require": {
16
-        "php": ">=5.3.0",
17
-        "symfony/framework-bundle": "2.*",
18
-        "kriswallsmith/assetic": "master-dev"
19
-    },
20
-    "suggest": {
21
-        "symfony/twig-bundle": "2.*"
22
-    },
23
-    "autoload": {
24
-        "psr-0": { "Symfony\\Bundle\\AsseticBundle": "" }
25
-    },
26
-    "target-dir": "Symfony/Bundle/AsseticBundle"
27
-}

+ 6 - 3
vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/IBMDB2/DB2Driver.php Voir le fichier

@@ -41,8 +41,8 @@ class DB2Driver implements Driver
41 41
      */
42 42
     public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
43 43
     {
44
-        if ( !isset($params['schema']) ) {
45
-            
44
+        if ( ! isset($params['protocol'])) {
45
+            $params['protocol'] = 'TCPIP';
46 46
         }
47 47
 
48 48
         if ($params['host'] !== 'localhost' && $params['host'] != '127.0.0.1') {
@@ -50,10 +50,13 @@ class DB2Driver implements Driver
50 50
             $params['dbname'] = 'DRIVER={IBM DB2 ODBC DRIVER}' .
51 51
                      ';DATABASE=' . $params['dbname'] .
52 52
                      ';HOSTNAME=' . $params['host'] .
53
-                     ';PORT='     . $params['port'] .
54 53
                      ';PROTOCOL=' . $params['protocol'] .
55 54
                      ';UID='      . $username .
56 55
                      ';PWD='      . $password .';';
56
+            if (isset($params['port'])) {
57
+                $params['dbname'] .= 'PORT=' . $params['port'];
58
+            }
59
+
57 60
             $username = null;
58 61
             $password = null;
59 62
         }

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php Voir le fichier

@@ -987,7 +987,7 @@ abstract class AbstractPlatform
987 987
         $sql = $this->_getCreateTableSQL($tableName, $columns, $options);
988 988
         if ($this->supportsCommentOnStatement()) {
989 989
             foreach ($table->getColumns() AS $column) {
990
-                if ($column->getComment()) {
990
+                if ($this->getColumnComment($column)) {
991 991
                     $sql[] = $this->getCommentOnColumnSQL($tableName, $column->getName(), $this->getColumnComment($column));
992 992
                 }
993 993
             }

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php Voir le fichier

@@ -596,7 +596,7 @@ class MsSqlPlatform extends AbstractPlatform
596 596
             }
597 597
 
598 598
             if ($offset == 0) {
599
-                $query = preg_replace('/^SELECT\s/i', 'SELECT TOP ' . $count . ' ', $query);
599
+                $query = preg_replace('/^(SELECT\s(DISTINCT\s)?)/i', '\1TOP ' . $count . ' ', $query);
600 600
             } else {
601 601
                 $orderby = stristr($query, 'ORDER BY');
602 602
 

+ 16 - 10
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/OraclePlatform.php Voir le fichier

@@ -450,16 +450,13 @@ END;';
450 450
           cols.position,
451 451
           r_alc.table_name \"references_table\",
452 452
           r_cols.column_name \"foreign_column\"
453
-     FROM all_cons_columns cols
454
-LEFT JOIN all_constraints alc
453
+     FROM user_cons_columns cols
454
+LEFT JOIN user_constraints alc
455 455
        ON alc.constraint_name = cols.constraint_name
456
-      AND alc.owner = cols.owner
457
-LEFT JOIN all_constraints r_alc
456
+LEFT JOIN user_constraints r_alc
458 457
        ON alc.r_constraint_name = r_alc.constraint_name
459
-      AND alc.r_owner = r_alc.owner
460
-LEFT JOIN all_cons_columns r_cols
458
+LEFT JOIN user_cons_columns r_cols
461 459
        ON r_alc.constraint_name = r_cols.constraint_name
462
-      AND r_alc.owner = r_cols.owner
463 460
       AND cols.position = r_cols.position
464 461
     WHERE alc.constraint_name = cols.constraint_name
465 462
       AND alc.constraint_type = 'R'
@@ -475,9 +472,18 @@ LEFT JOIN all_cons_columns r_cols
475 472
     public function getListTableColumnsSQL($table, $database = null)
476 473
     {
477 474
         $table = strtoupper($table);
478
-        return "SELECT c.*, d.comments FROM all_tab_columns c ".
479
-               "INNER JOIN all_col_comments d ON d.OWNER = c.OWNER AND d.TABLE_NAME = c.TABLE_NAME AND d.COLUMN_NAME = c.COLUMN_NAME ".
480
-               "WHERE c.table_name = '" . $table . "' ORDER BY c.column_name";
475
+
476
+        $tabColumnsTableName = "user_tab_columns";
477
+        $ownerCondition = '';
478
+        if(null !== $database){
479
+            $database = strtoupper($database);
480
+            $tabColumnsTableName = "all_tab_columns";
481
+            $ownerCondition = "AND c.owner = '".$database."'";
482
+        }
483
+
484
+        return "SELECT c.*, d.comments FROM $tabColumnsTableName c ".
485
+               "INNER JOIN user_col_comments d ON d.TABLE_NAME = c.TABLE_NAME AND d.COLUMN_NAME = c.COLUMN_NAME ".
486
+               "WHERE c.table_name = '" . $table . "' ".$ownerCondition." ORDER BY c.column_name";
481 487
     }
482 488
 
483 489
     /**

+ 3 - 2
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php Voir le fichier

@@ -269,10 +269,11 @@ class PostgreSqlPlatform extends AbstractPlatform
269 269
         $whereClause = $namespaceAlias.".nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND ";
270 270
         if (strpos($table, ".") !== false) {
271 271
             list($schema, $table) = explode(".", $table);
272
-            $whereClause .= "$classAlias.relname = '" . $table . "' AND $namespaceAlias.nspname = '" . $schema . "'";
272
+            $schema = "'" . $schema . "'";
273 273
         } else {
274
-            $whereClause .= "$classAlias.relname = '" . $table . "'";
274
+            $schema = "ANY(string_to_array((select setting from pg_catalog.pg_settings where name = 'search_path'),','))";
275 275
         }
276
+        $whereClause .= "$classAlias.relname = '" . $table . "' AND $namespaceAlias.nspname = $schema";
276 277
 
277 278
         return $whereClause;
278 279
     }

+ 1 - 0
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php Voir le fichier

@@ -470,6 +470,7 @@ class SqlitePlatform extends AbstractPlatform
470 470
             'longtext'         => 'text',
471 471
             'text'             => 'text',
472 472
             'varchar'          => 'string',
473
+            'longvarchar'      => 'string',
473 474
             'varchar2'         => 'string',
474 475
             'nvarchar'         => 'string',
475 476
             'image'            => 'string',

+ 3 - 3
vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php Voir le fichier

@@ -473,8 +473,8 @@ abstract class AbstractSchemaManager
473 473
      */
474 474
     public function dropAndCreateSequence(Sequence $sequence)
475 475
     {
476
-        $this->tryMethod('createSequence', $seqName, $start, $allocationSize);
477
-        $this->createSequence($seqName, $start, $allocationSize);
476
+        $this->tryMethod('dropSequence', $sequence->getQuotedName($this->_platform));
477
+        $this->createSequence($sequence);
478 478
     }
479 479
 
480 480
     /**
@@ -799,4 +799,4 @@ abstract class AbstractSchemaManager
799 799
     {
800 800
         return str_replace('(DC2Type:'.$type.')', '', $comment);
801 801
     }
802
-}
802
+}

+ 35 - 17
vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php Voir le fichier

@@ -170,26 +170,44 @@ class MySqlSchemaManager extends AbstractSchemaManager
170 170
         return new Column($tableColumn['field'], \Doctrine\DBAL\Types\Type::getType($type), $options);
171 171
     }
172 172
 
173
-    public function _getPortableTableForeignKeyDefinition($tableForeignKey)
173
+    protected function _getPortableTableForeignKeysList($tableForeignKeys)
174 174
     {
175
-        $tableForeignKey = array_change_key_case($tableForeignKey, CASE_LOWER);
175
+        $list = array();
176
+        foreach ($tableForeignKeys as $key => $value) {
177
+            $value = array_change_key_case($value, CASE_LOWER);
178
+            if (!isset($list[$value['constraint_name']])) {
179
+                if (!isset($value['delete_rule']) || $value['delete_rule'] == "RESTRICT") {
180
+                    $value['delete_rule'] = null;
181
+                }
182
+                if (!isset($value['update_rule']) || $value['update_rule'] == "RESTRICT") {
183
+                    $value['update_rule'] = null;
184
+                }
176 185
 
177
-        if (!isset($tableForeignKey['delete_rule']) || $tableForeignKey['delete_rule'] == "RESTRICT") {
178
-            $tableForeignKey['delete_rule'] = null;
186
+                $list[$value['constraint_name']] = array(
187
+                    'name' => $value['constraint_name'],
188
+                    'local' => array(),
189
+                    'foreign' => array(),
190
+                    'foreignTable' => $value['referenced_table_name'],
191
+                    'onDelete' => $value['delete_rule'],
192
+                    'onUpdate' => $value['update_rule'],
193
+                );
194
+            }
195
+            $list[$value['constraint_name']]['local'][] = $value['column_name'];
196
+            $list[$value['constraint_name']]['foreign'][] = $value['referenced_column_name'];
179 197
         }
180
-        if (!isset($tableForeignKey['update_rule']) || $tableForeignKey['update_rule'] == "RESTRICT") {
181
-            $tableForeignKey['update_rule'] = null;
198
+
199
+        $result = array();
200
+        foreach($list AS $constraint) {
201
+            $result[] = new ForeignKeyConstraint(
202
+                array_values($constraint['local']), $constraint['foreignTable'],
203
+                array_values($constraint['foreign']), $constraint['name'],
204
+                array(
205
+                    'onDelete' => $constraint['onDelete'],
206
+                    'onUpdate' => $constraint['onUpdate'],
207
+                )
208
+            );
182 209
         }
183 210
 
184
-        return new ForeignKeyConstraint(
185
-            (array)$tableForeignKey['column_name'],
186
-            $tableForeignKey['referenced_table_name'],
187
-            (array)$tableForeignKey['referenced_column_name'],
188
-            $tableForeignKey['constraint_name'],
189
-            array(
190
-                'onUpdate' => $tableForeignKey['update_rule'],
191
-                'onDelete' => $tableForeignKey['delete_rule'],
192
-            )
193
-        );
211
+        return $result;
194 212
     }
195
-}
213
+}

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Table.php Voir le fichier

@@ -167,7 +167,7 @@ class Table extends AbstractAsset
167 167
      */
168 168
     public function addUniqueIndex(array $columnNames, $indexName = null)
169 169
     {
170
-        if ($indexName == null) {
170
+        if ($indexName === null) {
171 171
             $indexName = $this->_generateIdentifierName(
172 172
                 array_merge(array($this->getName()), $columnNames), "uniq", $this->_getMaxIdentifierLength()
173 173
             );

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/BigIntType.php Voir le fichier

@@ -43,6 +43,6 @@ class BigIntType extends Type
43 43
 
44 44
     public function getBindingType()
45 45
     {
46
-        return \PDO::PARAM_INT;
46
+        return \PDO::PARAM_STR;
47 47
     }
48 48
 }

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Version.php Voir le fichier

@@ -36,7 +36,7 @@ class Version
36 36
     /**
37 37
      * Current Doctrine Version
38 38
      */
39
-    const VERSION = '2.1.5-DEV';
39
+    const VERSION = '2.1.7-DEV';
40 40
 
41 41
     /**
42 42
      * Compares a Doctrine version with the current one.

+ 15 - 1
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php Voir le fichier

@@ -31,6 +31,19 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
31 31
         $this->_sm = $this->_conn->getSchemaManager();
32 32
     }
33 33
 
34
+    /**
35
+     * @group DBAL-195
36
+     */
37
+    public function testDropAndCreateSequence()
38
+    {
39
+        if(!$this->_conn->getDatabasePlatform()->supportsSequences()) {
40
+            $this->markTestSkipped($this->_conn->getDriver()->getName().' does not support sequences.');
41
+        }
42
+
43
+        $sequence = new \Doctrine\DBAL\Schema\Sequence('dropcreate_sequences_test_seq', 20, 10);
44
+        $this->_sm->dropAndCreateSequence($sequence);
45
+    }
46
+
34 47
     public function testListSequences()
35 48
     {
36 49
         if(!$this->_conn->getDatabasePlatform()->supportsSequences()) {
@@ -522,4 +535,5 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
522 535
         }
523 536
         $this->assertTrue($foundTable, "Could not find new table");
524 537
     }
525
-}
538
+}
539
+

+ 16 - 1
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php Voir le fichier

@@ -205,6 +205,16 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase
205 205
         $this->assertEquals($this->getAlterTableColumnCommentsSQL(), $this->_platform->getAlterTableSQL($tableDiff));
206 206
     }
207 207
 
208
+    public function testCreateTableColumnTypeComments()
209
+    {
210
+        $table = new \Doctrine\DBAL\Schema\Table('test');
211
+        $table->addColumn('id', 'integer');
212
+        $table->addColumn('data', 'array');
213
+        $table->setPrimaryKey(array('id'));
214
+
215
+        $this->assertEquals($this->getCreateTableColumnTypeCommentsSQL(), $this->_platform->getCreateTableSQL($table));
216
+    }
217
+
208 218
     public function getCreateTableColumnCommentsSQL()
209 219
     {
210 220
         $this->markTestSkipped('Platform does not support Column comments.');
@@ -214,7 +224,12 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase
214 224
     {
215 225
         $this->markTestSkipped('Platform does not support Column comments.');
216 226
     }
217
-    
227
+
228
+    public function getCreateTableColumnTypeCommentsSQL()
229
+    {
230
+        $this->markTestSkipped('Platform does not support Column comments.');
231
+    }
232
+
218 233
     /**
219 234
      * @group DBAL-45
220 235
      */

+ 5 - 0
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php Voir le fichier

@@ -204,4 +204,9 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
204 204
     {
205 205
         return array("ALTER TABLE mytable ADD quota INT NOT NULL COMMENT 'A comment', CHANGE bar baz VARCHAR(255) NOT NULL COMMENT 'B comment'");
206 206
     }
207
+
208
+    public function getCreateTableColumnTypeCommentsSQL()
209
+    {
210
+        return array("CREATE TABLE test (id INT NOT NULL, data LONGTEXT NOT NULL COMMENT '(DC2Type:array)', PRIMARY KEY(id)) ENGINE = InnoDB");
211
+    }
207 212
 }

+ 8 - 0
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php Voir le fichier

@@ -195,6 +195,14 @@ class OraclePlatformTest extends AbstractPlatformTestCase
195 195
         );
196 196
     }
197 197
 
198
+    public function getCreateTableColumnTypeCommentsSQL()
199
+    {
200
+        return array(
201
+            "CREATE TABLE test (id NUMBER(10) NOT NULL, data CLOB NOT NULL, PRIMARY KEY(id))",
202
+            "COMMENT ON COLUMN test.data IS '(DC2Type:array)'"
203
+        );
204
+    }
205
+
198 206
     public function getAlterTableColumnCommentsSQL()
199 207
     {
200 208
         return array(

+ 8 - 0
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/PostgreSqlPlatformTest.php Voir le fichier

@@ -216,4 +216,12 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase
216 216
             "COMMENT ON COLUMN mytable.baz IS 'B comment'",
217 217
         );
218 218
     }
219
+
220
+    public function getCreateTableColumnTypeCommentsSQL()
221
+    {
222
+        return array(
223
+            "CREATE TABLE test (id INT NOT NULL, data TEXT NOT NULL, PRIMARY KEY(id))",
224
+            "COMMENT ON COLUMN test.data IS '(DC2Type:array)'"
225
+        );
226
+    }
219 227
 }

+ 76 - 0
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php Voir le fichier

@@ -0,0 +1,76 @@
1
+<?php
2
+
3
+namespace Doctrine\Tests\DBAL\Schema;
4
+
5
+require_once __DIR__ . '/../../TestInit.php';
6
+
7
+use Doctrine\Common\EventManager;
8
+use Doctrine\DBAL\Connection;
9
+use Doctrine\DBAL\Configuration;
10
+use Doctrine\DBAL\Events;
11
+use Doctrine\DBAL\Schema\MySqlSchemaManager;
12
+use Doctrine\Tests\DBAL\Mocks;
13
+use Doctrine\Tests\TestUtil;
14
+
15
+class MySqlSchemaManagerTest extends \PHPUnit_Framework_TestCase
16
+{
17
+    /**
18
+     *
19
+     * @var \Doctrine\DBAL\Schema\AbstractSchemaManager
20
+     */
21
+    private $manager;
22
+
23
+    public function setUp()
24
+    {
25
+        $eventManager = new EventManager();
26
+        $driverMock = $this->getMock('Doctrine\DBAL\Driver');
27
+        $platform = $this->getMock('Doctrine\DBAL\Platforms\MySqlPlatform');
28
+        $this->conn = $this->getMock(
29
+            'Doctrine\DBAL\Connection',
30
+            array('fetchAll'),
31
+            array(array('platform' => $platform), $driverMock, new Configuration(), $eventManager)
32
+        );
33
+        $this->manager = new MySqlSchemaManager($this->conn);
34
+    }
35
+
36
+    public function testCompositeForeignKeys()
37
+    {
38
+        $this->conn->expects($this->once())->method('fetchAll')->will($this->returnValue($this->getFKDefinition()));
39
+        $fkeys = $this->manager->listTableForeignKeys('dummy');
40
+        $this->assertEquals(1, count($fkeys), "Table has to have one foreign key.");
41
+
42
+        $this->assertInstanceOf('Doctrine\DBAL\Schema\ForeignKeyConstraint', $fkeys[0]);
43
+        $this->assertEquals(array('column_1', 'column_2', 'column_3'), array_map('strtolower', $fkeys[0]->getLocalColumns()));
44
+        $this->assertEquals(array('column_1', 'column_2', 'column_3'), array_map('strtolower', $fkeys[0]->getForeignColumns()));
45
+    }
46
+
47
+    public function getFKDefinition()
48
+    {
49
+        return array(
50
+            array(
51
+                "CONSTRAINT_NAME" => "FK_C1B1712387FE737264DE5A5511B8B3E",
52
+                "COLUMN_NAME" => "column_1",
53
+                "REFERENCED_TABLE_NAME" => "dummy",
54
+                "REFERENCED_COLUMN_NAME" => "column_1",
55
+                "update_rule" => "RESTRICT",
56
+                "delete_rule" => "RESTRICT",
57
+            ),
58
+            array(
59
+                "CONSTRAINT_NAME" => "FK_C1B1712387FE737264DE5A5511B8B3E",
60
+                "COLUMN_NAME" => "column_2",
61
+                "REFERENCED_TABLE_NAME" => "dummy",
62
+                "REFERENCED_COLUMN_NAME" => "column_2",
63
+                "update_rule" => "RESTRICT",
64
+                "delete_rule" => "RESTRICT",
65
+            ),
66
+            array(
67
+                "CONSTRAINT_NAME" => "FK_C1B1712387FE737264DE5A5511B8B3E",
68
+                "COLUMN_NAME" => "column_3",
69
+                "REFERENCED_TABLE_NAME" => "dummy",
70
+                "REFERENCED_COLUMN_NAME" => "column_3",
71
+                "update_rule" => "RESTRICT",
72
+                "delete_rule" => "RESTRICT",
73
+            )
74
+        );
75
+    }
76
+}

+ 1 - 1
vendor/doctrine-fixtures

@@ -1 +1 @@
1
-Subproject commit 738983423b12d80a127424cd0ade6c45a633a706
1
+Subproject commit ffee818a6e3af526b774de11b690a36512fa6235

+ 4 - 4
vendor/doctrine/build.xml Voir le fichier

@@ -92,10 +92,10 @@
92 92
            <dependencies>
93 93
                <php minimum_version="5.3.0" />
94 94
                <pear minimum_version="1.6.0" recommended_version="1.6.1" />
95
-               <package name="DoctrineCommon" channel="pear.doctrine-project.org" minimum_version="${dependencies.common}" />
96
-               <package name="DoctrineDBAL" channel="pear.doctrine-project.org" minimum_version="${dependencies.dbal}" />
97
-               <package name="Console" channel="pear.symfony.org" minimum_version="2.0.0" />
98
-               <package name="Yaml" channel="pear.symfony.org" minimum_version="2.0.0" />
95
+               <package name="DoctrineCommon" channel="pear.doctrine-project.org" minimum_version="${dependencies.common}" maximum_version="2.1.99" />
96
+               <package name="DoctrineDBAL" channel="pear.doctrine-project.org" minimum_version="${dependencies.dbal}" maximum_version="2.1.99" />
97
+               <package name="Console" channel="pear.symfony.com" minimum_version="2.0.0" />
98
+               <package name="Yaml" channel="pear.symfony.com" minimum_version="2.0.0" />
99 99
            </dependencies>
100 100
            <dirroles key="bin">script</dirroles>
101 101
            <ignore>Doctrine/Common/</ignore>

+ 1 - 1
vendor/doctrine/composer.json Voir le fichier

@@ -1,6 +1,6 @@
1 1
 {
2 2
     "name": "doctrine/orm",
3
-    "type": "library","version":"2.1.5",
3
+    "type": "library","version":"2.1.6",
4 4
     "description": "Object-Relational-Mapper for PHP",
5 5
     "keywords": ["orm", "database"],
6 6
     "homepage": "http://www.doctrine-project.org",

+ 5 - 2
vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php Voir le fichier

@@ -313,7 +313,6 @@ class ObjectHydrator extends AbstractHydrator
313 313
                     continue;
314 314
                 }
315 315
 
316
-
317 316
                 $parentClass = $this->_ce[$this->_rsm->aliasMap[$parentAlias]];
318 317
                 $oid = spl_object_hash($parentObject);
319 318
                 $relationField = $this->_rsm->relationMap[$dqlAlias];
@@ -322,6 +321,7 @@ class ObjectHydrator extends AbstractHydrator
322 321
 
323 322
                 // Check the type of the relation (many or single-valued)
324 323
                 if ( ! ($relation['type'] & ClassMetadata::TO_ONE)) {
324
+                    $reflFieldValue = $reflField->getValue($parentObject);
325 325
                     // PATH A: Collection-valued association
326 326
                     if (isset($nonemptyComponents[$dqlAlias])) {
327 327
                         $collKey = $oid . $relationField;
@@ -363,9 +363,12 @@ class ObjectHydrator extends AbstractHydrator
363 363
                             // Update result pointer
364 364
                             $this->_resultPointers[$dqlAlias] = $reflFieldValue[$index];
365 365
                         }
366
-                    } else if ( ! $reflField->getValue($parentObject)) {
366
+                    } else if ( ! $reflFieldValue) {
367 367
                         $reflFieldValue = $this->_initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
368
+                    } else if ($reflFieldValue instanceof PersistentCollection && $reflFieldValue->isInitialized() === false) {
369
+                        $reflFieldValue->setInitialized(true);
368 370
                     }
371
+
369 372
                 } else {
370 373
                     // PATH B: Single-valued association
371 374
                     $reflFieldValue = $reflField->getValue($parentObject);

+ 2 - 2
vendor/doctrine/lib/Doctrine/ORM/Query/Expr.php Voir le fichier

@@ -73,7 +73,7 @@ class Expr
73 73
      * Creates an ASCending order expression.
74 74
      *
75 75
      * @param $sort
76
-     * @return OrderBy
76
+     * @return Expr\OrderBy
77 77
      */
78 78
     public function asc($expr)
79 79
     {
@@ -84,7 +84,7 @@ class Expr
84 84
      * Creates a DESCending order expression.
85 85
      *
86 86
      * @param $sort
87
-     * @return OrderBy
87
+     * @return Expr\OrderBy
88 88
      */
89 89
     public function desc($expr)
90 90
     {

+ 10 - 10
vendor/doctrine/lib/Doctrine/ORM/Query/Expr/Composite.php Voir le fichier

@@ -39,30 +39,30 @@ class Composite extends Base
39 39
         if ($this->count() === 1) {
40 40
             return (string) $this->_parts[0];
41 41
         }
42
-        
42
+
43 43
         $components = array();
44
-        
44
+
45 45
         foreach ($this->_parts as $part) {
46 46
             $components[] = $this->processQueryPart($part);
47 47
         }
48
-        
48
+
49 49
         return implode($this->_separator, $components);
50 50
     }
51
-    
52
-    
51
+
52
+
53 53
     private function processQueryPart($part)
54 54
     {
55 55
         $queryPart = (string) $part;
56
-        
56
+
57 57
         if (is_object($part) && $part instanceof self && $part->count() > 1) {
58 58
             return $this->_preSeparator . $queryPart . $this->_postSeparator;
59 59
         }
60
-        
60
+
61 61
         // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND")
62
-        if (mb_stripos($queryPart, ' OR ') !== false || mb_stripos($queryPart, ' AND ') !== false) {
62
+        if (stripos($queryPart, ' OR ') !== false || stripos($queryPart, ' AND ') !== false) {
63 63
             return $this->_preSeparator . $queryPart . $this->_postSeparator;
64 64
         }
65
-        
65
+
66 66
         return $queryPart;
67 67
     }
68
-}
68
+}

+ 10 - 2
vendor/doctrine/lib/Doctrine/ORM/Query/SqlWalker.php Voir le fichier

@@ -36,6 +36,11 @@ use Doctrine\DBAL\LockMode,
36 36
 class SqlWalker implements TreeWalker
37 37
 {
38 38
     /**
39
+     * @var string
40
+     */
41
+    const HINT_DISTINCT = 'doctrine.distinct';
42
+  
43
+    /**
39 44
      * @var ResultSetMapping
40 45
      */
41 46
     private $_rsm;
@@ -516,6 +521,10 @@ class SqlWalker implements TreeWalker
516 521
         $sql = 'SELECT ' . (($selectClause->isDistinct) ? 'DISTINCT ' : '');
517 522
         $sqlSelectExpressions = array_filter(array_map(array($this, 'walkSelectExpression'), $selectClause->selectExpressions));
518 523
 
524
+        if ($this->_query->getHint(Query::HINT_INTERNAL_ITERATION) == true && $selectClause->isDistinct) {
525
+            $this->_query->setHint(self::HINT_DISTINCT, true);
526
+        }
527
+
519 528
         $addMetaColumns = ! $this->_query->getHint(Query::HINT_FORCE_PARTIAL_LOAD) &&
520 529
                 $this->_query->getHydrationMode() == Query::HYDRATE_OBJECT
521 530
                 ||
@@ -736,8 +745,7 @@ class SqlWalker implements TreeWalker
736 745
 
737 746
         // Ensure we got the owning side, since it has all mapping info
738 747
         $assoc = ( ! $relation['isOwningSide']) ? $targetClass->associationMappings[$relation['mappedBy']] : $relation;
739
-
740
-        if ($this->_query->getHint(Query::HINT_INTERNAL_ITERATION) == true) {
748
+        if ($this->_query->getHint(Query::HINT_INTERNAL_ITERATION) == true && (!$this->_query->getHint(self::HINT_DISTINCT) || isset($this->_selectedClasses[$joinedDqlAlias]))) {
741 749
             if ($relation['type'] == ClassMetadata::ONE_TO_MANY || $relation['type'] == ClassMetadata::MANY_TO_MANY) {
742 750
                 throw QueryException::iterateWithFetchJoinNotAllowed($assoc);
743 751
             }

+ 28 - 6
vendor/doctrine/lib/Doctrine/ORM/QueryBuilder.php Voir le fichier

@@ -50,6 +50,7 @@ class QueryBuilder
50 50
      * @var array The array of DQL parts collected.
51 51
      */
52 52
     private $_dqlParts = array(
53
+        'distinct' => false,
53 54
         'select'  => array(),
54 55
         'from'    => array(),
55 56
         'join'    => array(),
@@ -119,7 +120,7 @@ class QueryBuilder
119 120
      * For more complex expression construction, consider storing the expression
120 121
      * builder object in a local variable.
121 122
      *
122
-     * @return Expr
123
+     * @return Query\Expr
123 124
      */
124 125
     public function expr()
125 126
     {
@@ -342,8 +343,8 @@ class QueryBuilder
342 343
      *         ->from('User', 'u')
343 344
      *         ->where('u.id = :user_id1 OR u.id = :user_id2')
344 345
      *         ->setParameters(array(
345
-     *             ':user_id1' => 1,
346
-     *             ':user_id2' => 2
346
+     *             'user_id1' => 1,
347
+     *             'user_id2' => 2
347 348
      *         ));
348 349
      * </code>
349 350
      *
@@ -503,6 +504,25 @@ class QueryBuilder
503 504
     }
504 505
 
505 506
     /**
507
+     * Add a DISTINCT flag to this query.
508
+     *
509
+     * <code>
510
+     *     $qb = $em->createQueryBuilder()
511
+     *         ->select('u')
512
+     *         ->distinct()
513
+     *         ->from('User', 'u');
514
+     * </code>
515
+     *
516
+     * @param bool
517
+     * @return QueryBuilder
518
+     */
519
+    public function distinct($flag = true)
520
+    {
521
+        $this->_dqlParts['distinct'] = (bool) $flag;
522
+        return $this;
523
+    }
524
+
525
+    /**
506 526
      * Adds an item that is to be returned in the query result.
507 527
      *
508 528
      * <code>
@@ -973,8 +993,10 @@ class QueryBuilder
973 993
 
974 994
     private function _getDQLForSelect()
975 995
     {
976
-        $dql = 'SELECT' . $this->_getReducedDQLQueryPart('select', array('pre' => ' ', 'separator' => ', '));
977
-        
996
+        $dql = 'SELECT'
997
+              . ($this->_dqlParts['distinct']===true ? ' DISTINCT' : '')
998
+              . $this->_getReducedDQLQueryPart('select', array('pre' => ' ', 'separator' => ', '));
999
+
978 1000
         $fromParts   = $this->getDQLPart('from');
979 1001
         $joinParts   = $this->getDQLPart('join');
980 1002
         $fromClauses = array();
@@ -1082,4 +1104,4 @@ class QueryBuilder
1082 1104
             }
1083 1105
         }
1084 1106
     }
1085
-}
1107
+}

+ 3 - 1
vendor/doctrine/lib/Doctrine/ORM/Tools/EntityGenerator.php Voir le fichier

@@ -189,6 +189,8 @@ public function <methodName>()
189 189
 
190 190
         if ( ! $this->_isNew) {
191 191
             $this->_parseTokensInEntityFile(file_get_contents($path));
192
+        } else {
193
+            $this->_staticReflection[$metadata->name] = array('properties' => array(), 'methods' => array());
192 194
         }
193 195
 
194 196
         if ($this->_backupExisting && file_exists($path)) {
@@ -1061,4 +1063,4 @@ public function <methodName>()
1061 1063
                 throw new \InvalidArgumentException('Invalid provided IdGeneratorType: ' . $type);
1062 1064
         }
1063 1065
     }
1064
-}
1066
+}

+ 2 - 2
vendor/doctrine/lib/Doctrine/ORM/Tools/SchemaTool.php Voir le fichier

@@ -217,13 +217,13 @@ class SchemaTool
217 217
 
218 218
             if (isset($class->table['indexes'])) {
219 219
                 foreach ($class->table['indexes'] AS $indexName => $indexData) {
220
-                    $table->addIndex($indexData['columns'], $indexName);
220
+                    $table->addIndex($indexData['columns'], is_numeric($indexName) ? null : $indexName);
221 221
                 }
222 222
             }
223 223
 
224 224
             if (isset($class->table['uniqueConstraints'])) {
225 225
                 foreach ($class->table['uniqueConstraints'] AS $indexName => $indexData) {
226
-                    $table->addUniqueIndex($indexData['columns'], $indexName);
226
+                    $table->addUniqueIndex($indexData['columns'], is_numeric($indexName) ? null : $indexName);
227 227
                 }
228 228
             }
229 229
 

+ 9 - 0
vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php Voir le fichier

@@ -1453,6 +1453,15 @@ class UnitOfWork implements PropertyChangedListener
1453 1453
                     } else {
1454 1454
                         throw new EntityNotFoundException;
1455 1455
                     }
1456
+
1457
+                    $managedCopy = $this->newInstance($class);
1458
+                    $class->setIdentifierValues($managedCopy, $id);
1459
+
1460
+                    $this->persistNew($class, $managedCopy);
1461
+                } else {
1462
+                    if ($managedCopy instanceof Proxy && ! $managedCopy->__isInitialized__) {
1463
+                        $managedCopy->__load();
1464
+                    }
1456 1465
                 }
1457 1466
             }
1458 1467
 

+ 1 - 1
vendor/doctrine/lib/Doctrine/ORM/Version.php Voir le fichier

@@ -36,7 +36,7 @@ class Version
36 36
     /**
37 37
      * Current Doctrine Version
38 38
      */
39
-    const VERSION = '2.1.5';
39
+    const VERSION = '2.1.6';
40 40
 
41 41
     /**
42 42
      * Compares a Doctrine version with the current one.

+ 67 - 0
vendor/doctrine/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1526Test.php Voir le fichier

@@ -0,0 +1,67 @@
1
+<?php
2
+
3
+namespace Doctrine\Tests\ORM\Functional\Ticket;
4
+
5
+/**
6
+ * @group DDC-1526
7
+ */
8
+class DDC1526Test extends \Doctrine\Tests\OrmFunctionalTestCase
9
+{
10
+    public function setUp()
11
+    {
12
+        parent::setUp();
13
+        $this->_schemaTool->createSchema(array(
14
+            $this->_em->getClassMetadata(__NAMESPACE__ . '\\DDC1526Menu'),
15
+        ));
16
+    }
17
+
18
+    public function testIssue()
19
+    {
20
+        $parents = array();
21
+        for ($i = 0; $i < 9; $i++) {
22
+            $entity = new DDC1526Menu;
23
+
24
+            if (isset ($parents[($i % 3)])) {
25
+                $entity->parent = $parents[($i%3)];
26
+            }
27
+
28
+            $this->_em->persist($entity);
29
+            $parents[$i] = $entity;
30
+        }
31
+        $this->_em->flush();
32
+        $this->_em->clear();
33
+
34
+
35
+        $dql = "SELECT m, c
36
+            FROM " . __NAMESPACE__ . "\DDC1526Menu m
37
+            LEFT JOIN m.children c";
38
+        $menus = $this->_em->createQuery($dql)->getResult();
39
+
40
+        // All Children collection now have to be initiailzed
41
+        foreach ($menus as $menu) {
42
+            $this->assertTrue($menu->children->isInitialized());
43
+        }
44
+    }
45
+}
46
+
47
+/**
48
+ * @Entity
49
+ */
50
+class DDC1526Menu
51
+{
52
+    /**
53
+     * @Column(type="integer")
54
+     * @Id
55
+     * @GeneratedValue
56
+     */
57
+    public $id;
58
+    /**
59
+     * @ManyToOne(targetEntity="DDC1526Menu", inversedBy="children")
60
+     */
61
+    public $parent;
62
+
63
+    /**
64
+     * @OneToMany(targetEntity="DDC1526Menu", mappedBy="parent")
65
+     */
66
+    public $children;
67
+}

+ 45 - 0
vendor/doctrine/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1594Test.php Voir le fichier

@@ -0,0 +1,45 @@
1
+<?php
2
+
3
+namespace Doctrine\Tests\ORM\Functional\Ticket;
4
+
5
+use Doctrine\Common\Collections\ArrayCollection;
6
+
7
+use Doctrine\Tests\Models\CMS\CmsComment;
8
+use Doctrine\Tests\Models\CMS\CmsArticle;
9
+use Doctrine\Tests\Models\CMS\CmsUser;
10
+
11
+/**
12
+ * @group DDC-1594
13
+ */
14
+class DDC1594Test extends \Doctrine\Tests\OrmFunctionalTestCase
15
+{
16
+    public function setUp()
17
+    {
18
+        $this->useModelSet('cms');
19
+        parent::setUp();
20
+    }
21
+
22
+    public function testIssue()
23
+    {
24
+        $user = new CmsUser();
25
+        $user->status = 'foo';
26
+        $user->username = 'foo';
27
+        $user->name = 'foo';
28
+
29
+        $this->_em->persist($user);
30
+        $this->_em->flush();
31
+
32
+        $this->_em->clear();
33
+        $detachedUser = clone $user;
34
+        $detachedUser->name = 'bar';
35
+        $detachedUser->status = 'bar';
36
+
37
+        $newUser = $this->_em->getReference(get_class($user), $user->id);
38
+
39
+        $mergedUser = $this->_em->merge($detachedUser);
40
+
41
+        $this->assertNotSame($mergedUser, $detachedUser);
42
+        $this->assertEquals('bar', $detachedUser->getName());
43
+        $this->assertEquals('bar', $mergedUser->getName());
44
+    }
45
+}

+ 24 - 0
vendor/doctrine/tests/Doctrine/Tests/ORM/Query/QueryTest.php Voir le fichier

@@ -90,4 +90,28 @@ class QueryTest extends \Doctrine\Tests\OrmTestCase
90 90
         $this->assertEquals('baz', $q->getHint('bar'));
91 91
         $this->assertEquals(array('foo' => 'bar', 'bar' => 'baz'), $q->getHints());
92 92
     }
93
+    
94
+    /**
95
+     * @expectedException Doctrine\ORM\Query\QueryException
96
+     **/
97
+    public function testIterateWithNoDistinctAndWrongSelectClause()
98
+    {
99
+        $q = $this->_em->createQuery("select u, a from Doctrine\Tests\Models\CMS\CmsUser u LEFT JOIN u.articles a");
100
+        $q->iterate();
101
+    }
102
+    
103
+    /**
104
+     * @expectedException Doctrine\ORM\Query\QueryException
105
+     **/
106
+    public function testIterateWithNoDistinctAndWithValidSelectClause()
107
+    {
108
+        $q = $this->_em->createQuery("select u from Doctrine\Tests\Models\CMS\CmsUser u LEFT JOIN u.articles a");
109
+        $q->iterate();
110
+    }
111
+    
112
+    public function testIterateWithDistinct()
113
+    {
114
+        $q = $this->_em->createQuery("SELECT DISTINCT u from Doctrine\Tests\Models\CMS\CmsUser u LEFT JOIN u.articles a");
115
+        $q->iterate();
116
+    }
93 117
 }

+ 14 - 1
vendor/doctrine/tests/Doctrine/Tests/ORM/QueryBuilderTest.php Voir le fichier

@@ -732,4 +732,17 @@ class QueryBuilderTest extends \Doctrine\Tests\OrmTestCase
732 732
         
733 733
         $this->assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $qb->getDQL());
734 734
     }
735
-}
735
+
736
+    /**
737
+     * @group DDC-1619
738
+     */
739
+    public function testAddDistinct()
740
+    {
741
+        $qb = $this->_em->createQueryBuilder()
742
+            ->select('u')
743
+            ->distinct()
744
+            ->from('Doctrine\Tests\Models\CMS\CmsUser', 'u');
745
+
746
+        $this->assertEquals('SELECT DISTINCT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $qb->getDQL());
747
+    }
748
+}

+ 9 - 0
vendor/swiftmailer/CHANGES Voir le fichier

@@ -1,6 +1,15 @@
1 1
 Changelog since Version 4.1.x
2 2
 =============================
3 3
 
4
+4.1.5 (2012-01-04)
5
+------------------
6
+
7
+ * enforced Swift_Spool::queueMessage() to return a Boolean
8
+ * made an optimization to the memory spool: start the transport only when required
9
+ * prevented stream_socket_client() from generating an error and throw a Swift_TransportException instead
10
+ * fixed a PHP warning when calling to mail() when safe_mode is off
11
+ * many doc tweaks
12
+
4 13
 4.1.4 (2011-12-16)
5 14
 ------------------
6 15
 

+ 1 - 1
vendor/swiftmailer/VERSION Voir le fichier

@@ -1 +1 @@
1
-Swift-4.1.4
1
+Swift-4.1.5

+ 1 - 1
vendor/swiftmailer/composer.json Voir le fichier

@@ -4,7 +4,7 @@
4 4
     "description": "Swiftmailer, free feature-rich PHP mailer",
5 5
     "keywords": ["mail","mailer"],
6 6
     "homepage": "http://swiftmailer.org",
7
-    "version": "4.1.4",
7
+    "version": "4.1.5",
8 8
     "license": "LGPL",
9 9
     "authors": [
10 10
         {

+ 96 - 106
vendor/swiftmailer/doc/headers.rst Voir le fichier

@@ -12,20 +12,18 @@ All MIME entities in Swift Mailer -- including the message itself --
12 12
 store their headers in a single object called a HeaderSet. This HeaderSet is
13 13
 retrieved with the ``getHeaders()`` method.
14 14
 
15
-As mentioned in the previous chapter, everything that forms a part of a
16
-message in Swift Mailer is a MIME entity that is represented by an instance of
17
-``Swift_Mime_MimeEntity``. This includes -- most notably -- the
18
-message object itself, attachments, MIME parts and embedded images. Each of
19
-these MIME entities consists of a body and a set of headers that describe the
20
-body.
15
+As mentioned in the previous chapter, everything that forms a part of a message
16
+in Swift Mailer is a MIME entity that is represented by an instance of
17
+``Swift_Mime_MimeEntity``. This includes -- most notably -- the message object
18
+itself, attachments, MIME parts and embedded images. Each of these MIME entities
19
+consists of a body and a set of headers that describe the body.
21 20
 
22 21
 For all of the "standard" headers in these MIME entities, such as the
23
-``Content-Type``, there are named methods for working with them,
24
-such as ``setContentType()`` and
25
-``getContentType()``. This is because headers are a moderately
26
-complex area of the library. Each header has a slightly different required
27
-structure that it must meet in order to comply with the standards that govern
28
-email (and that are checked by spam blockers etc).
22
+``Content-Type``, there are named methods for working with them, such as 
23
+``setContentType()`` and ``getContentType()``. This is because headers are a
24
+moderately complex area of the library. Each header has a slightly different
25
+required structure that it must meet in order to comply with the standards that
26
+govern email (and that are checked by spam blockers etc).
29 27
 
30 28
 You fetch the HeaderSet from a MIME entity like so:
31 29
 
@@ -33,12 +31,12 @@ You fetch the HeaderSet from a MIME entity like so:
33 31
 
34 32
     $message = Swift_Message::newInstance();
35 33
 
36
-    //Fetch the HeaderSet from a Message object
34
+    // Fetch the HeaderSet from a Message object
37 35
     $headers = $message->getHeaders();
38 36
 
39 37
     $attachment = Swift_Attachment::fromPath('document.pdf');
40 38
 
41
-    //Fetch the HeaderSet from an attachment object
39
+    // Fetch the HeaderSet from an attachment object
42 40
     $headers = $attachment->getHeaders();
43 41
 
44 42
 The job of the HeaderSet is to contain and manage instances of Header objects.
@@ -66,8 +64,8 @@ the names of the headers:
66 64
     To
67 65
     */
68 66
 
69
-You can also dump out the rendered HeaderSet by calling its
70
-``toString()`` method:
67
+You can also dump out the rendered HeaderSet by calling its ``toString()`` 
68
+method:
71 69
 
72 70
 .. code-block:: php
73 71
 
@@ -87,17 +85,15 @@ You can also dump out the rendered HeaderSet by calling its
87 85
 Where the complexity comes in is when you want to modify an existing header.
88 86
 This complexity comes from the fact that each header can be of a slightly
89 87
 different type (such as a Date header, or a header that contains email
90
-addresses, or a header that has key-value parameters on it!). Each
91
-header in the HeaderSet is an instance of ``Swift_Mime_Header``.
92
-They all have common functionality, but knowing exactly what type of header
93
-you're working with will allow you a little more control.
88
+addresses, or a header that has key-value parameters on it!). Each header in the
89
+HeaderSet is an instance of ``Swift_Mime_Header``. They all have common 
90
+functionality, but knowing exactly what type of header you're working with will
91
+allow you a little more control.
94 92
 
95 93
 You can determine the type of header by comparing the return value of its
96
-``getFieldType()`` method with the constants
97
-``TYPE_TEXT``, ``TYPE_PARAMETERIZED``,
98
-``TYPE_DATE``, ``TYPE_MAILBOX``,
99
-``TYPE_ID`` and ``TYPE_PATH`` which are defined in
100
-``Swift_Mime_Header``.
94
+``getFieldType()`` method with the constants ``TYPE_TEXT``,
95
+``TYPE_PARAMETERIZED``, ``TYPE_DATE``, ``TYPE_MAILBOX``, ``TYPE_ID`` and
96
+``TYPE_PATH`` which are defined in ``Swift_Mime_Header``.
101 97
 
102 98
 
103 99
 .. code-block:: php
@@ -141,10 +137,10 @@ exist within the HeaderSet.
141 137
 Header Types
142 138
 ------------
143 139
 
144
-Because all headers are modeled on different data (dates, addresses,
145
-text!) there are different types of Header in Swift Mailer. Swift Mailer
146
-attempts to categorize all possible MIME headers into more general groups,
147
-defined by a small number of classes.
140
+Because all headers are modeled on different data (dates, addresses, text!)
141
+there are different types of Header in Swift Mailer. Swift Mailer attempts to
142
+categorize all possible MIME headers into more general groups, defined by a
143
+small number of classes.
148 144
 
149 145
 Text Headers
150 146
 ~~~~~~~~~~~~
@@ -160,9 +156,9 @@ contains characters that are not permitted in a message header (such as new
160 156
 lines, or non-ascii characters) then the header takes care of encoding the
161 157
 text so that it can be used.
162 158
 
163
-No header -- including text headers -- in Swift Mailer is vulnerable
164
-to header-injection attacks. Swift Mailer breaks any attempt at header
165
-injection by encoding the dangerous data into a non-dangerous form.
159
+No header -- including text headers -- in Swift Mailer is vulnerable to
160
+header-injection attacks. Swift Mailer breaks any attempt at header injection by
161
+encoding the dangerous data into a non-dangerous form.
166 162
 
167 163
 It's easy to add a new text header to a HeaderSet. You do this by calling the
168 164
 HeaderSet's ``addTextHeader()`` method.
@@ -184,8 +180,8 @@ Changing the value of an existing text header is done by calling it's
184 180
 
185 181
     $subject->setValue('new subject');
186 182
 
187
-When output via ``toString()``, a text header produces something
188
-like the following:
183
+When output via ``toString()``, a text header produces something like the
184
+following:
189 185
 
190 186
 .. code-block:: php
191 187
 
@@ -228,9 +224,8 @@ parameterized header since it contains charset information after the content
228 224
 type.
229 225
 
230 226
 The parameterized header type is a special type of text header. It extends the
231
-text header by allowing additional information to follow it. All of the
232
-methods from text headers are available in addition to the methods described
233
-here.
227
+text header by allowing additional information to follow it. All of the methods
228
+from text headers are available in addition to the methods described here.
234 229
 
235 230
 Adding a parameterized header to a HeaderSet is done by using the
236 231
 ``addParameterizedHeader()`` method which takes a text value like
@@ -248,28 +243,27 @@ key-value parameters.
248 243
       array('foo' => 'bar')
249 244
       );
250 245
 
251
-To change the text value of the header, call it's ``setValue()``
252
-method just as you do with text headers.
246
+To change the text value of the header, call it's ``setValue()`` method just as
247
+you do with text headers.
253 248
 
254
-To change the parameters in the header, call the header's
255
-``setParameters()`` method or the ``setParameter()``
256
-method (note the pluralization).
249
+To change the parameters in the header, call the header's ``setParameters()``
250
+method or the ``setParameter()`` method (note the pluralization).
257 251
 
258 252
 .. code-block:: php
259 253
 
260 254
     $type = $message->getHeaders()->get('Content-Type');
261 255
 
262
-    //setParameters() takes an associative array
256
+    // setParameters() takes an associative array
263 257
     $type->setParameters(array(
264 258
       'name' => 'file.txt',
265 259
       'charset' => 'iso-8859-1'
266 260
       ));
267 261
 
268
-    //setParameter() takes two args for $key and $value
262
+    // setParameter() takes two args for $key and $value
269 263
     $type->setParameter('charset', 'iso-8859-1');
270 264
 
271
-When output via ``toString()``, a parameterized header produces
272
-something like the following:
265
+When output via ``toString()``, a parameterized header produces something like
266
+the following:
273 267
 
274 268
 .. code-block:: php
275 269
 
@@ -312,17 +306,17 @@ encoded so that they can be transmitted safely.
312 306
 Date Headers
313 307
 ~~~~~~~~~~~~
314 308
 
315
-Date headers contains an RFC 2822 formatted date (i.e. what PHP's
316
-``date('r')`` returns). They are used anywhere a date or time is
317
-needed to be presented as a message header.
309
+Date headers contains an RFC 2822 formatted date (i.e. what PHP's ``date('r')``
310
+returns). They are used anywhere a date or time is needed to be presented as a
311
+message header.
318 312
 
319
-The data on which a date header is modeled is simply a UNIX timestamp such as that
320
-returned by ``time()`` or ``strtotime()``.  The timestamp
321
-is used to create a correctly structured RFC 2822 formatted date such as
313
+The data on which a date header is modeled is simply a UNIX timestamp such as 
314
+that returned by ``time()`` or ``strtotime()``.  The timestamp is used to create 
315
+a correctly structured RFC 2822 formatted date such as
322 316
 ``Tue, 17 Feb 2009 22:26:31 +1100``.
323 317
 
324
-The obvious place this header type is used is in the ``Date:`` header
325
-of the message itself.
318
+The obvious place this header type is used is in the ``Date:`` header of the 
319
+message itself.
326 320
 
327 321
 It's easy to add a new date header to a HeaderSet.  You do this by calling
328 322
 the HeaderSet's ``addDateHeader()`` method.
@@ -344,8 +338,8 @@ Changing the value of an existing date header is done by calling it's
344 338
 
345 339
     $date->setTimestamp(time());
346 340
 
347
-When output via ``toString()``, a date header produces something
348
-like the following:
341
+When output via ``toString()``, a date header produces something like the 
342
+following:
349 343
 
350 344
 .. code-block:: php
351 345
 
@@ -367,13 +361,12 @@ personalized names attached to them. The data on which they are modeled is
367 361
 represented by an associative array of email addresses and names.
368 362
 
369 363
 Mailbox headers are probably the most complex header type to understand in
370
-Swift Mailer because they accept their input as an array which can take
371
-various forms, as described in the previous chapter.
364
+Swift Mailer because they accept their input as an array which can take various
365
+forms, as described in the previous chapter.
372 366
 
373 367
 All of the headers that contain e-mail addresses in a message -- with the
374
-exception of ``Return-Path:`` which has a stricter syntax --
375
-use this header type. That is, ``To:``, ``From:``
376
-etc.
368
+exception of ``Return-Path:`` which has a stricter syntax -- use this header
369
+type. That is, ``To:``, ``From:`` etc.
377 370
 
378 371
 You add a new mailbox header to a HeaderSet by calling the HeaderSet's
379 372
 ``addMailboxHeader()`` method.
@@ -433,8 +426,8 @@ string as the input parameter to ``setAddresses()`` and/or
433 426
 
434 427
     $to->setAddresses('joe-bloggs@example.org');
435 428
 
436
-When output via ``toString()``, a mailbox header produces
437
-something like the following:
429
+When output via ``toString()``, a mailbox header produces something like the
430
+following:
438 431
 
439 432
 .. code-block:: php
440 433
 
@@ -463,14 +456,14 @@ notable ID header is the Message-ID header on the message itself.
463 456
 
464 457
 An ID that exists inside an ID header looks more-or-less less like an email
465 458
 address.  For example, ``<![CDATA[<1234955437.499becad62ec2@example.org>]]>``.
466
-The part to the left of the @ sign is usually unique, based on the current time and
467
-some random factor.  The part on the right is usually a domain name.
459
+The part to the left of the @ sign is usually unique, based on the current time 
460
+and some random factor. The part on the right is usually a domain name.
468 461
 
469
-Any ID passed the an ID header's ``setId()`` method absolutely
470
-MUST conform to this structure, otherwise you'll get an Exception thrown at you
471
-by Swift Mailer (a ``Swift_RfcComplianceException``).  This is to
472
-ensure that the generated email complies with relevant RFC documents and therefore
473
-is less likely to be blocked as spam.
462
+Any ID passed the an ID header's ``setId()`` method absolutely MUST conform to 
463
+this structure, otherwise you'll get an Exception thrown at you by Swift Mailer 
464
+(a ``Swift_RfcComplianceException``).  This is to ensure that the generated 
465
+email complies with relevant RFC documents and therefore is less likely to be 
466
+blocked as spam.
474 467
 
475 468
 It's easy to add a new ID header to a HeaderSet.  You do this by calling
476 469
 the HeaderSet's ``addIdHeader()`` method.
@@ -492,8 +485,8 @@ Changing the value of an existing date header is done by calling its
492 485
 
493 486
     $msgId->setId(time() . '.' . uniqid('thing') . '@example.org');
494 487
 
495
-When output via ``toString()``, an ID header produces something
496
-like the following:
488
+When output via ``toString()``, an ID header produces something like the
489
+following:
497 490
 
498 491
 .. code-block:: php
499 492
 
@@ -535,8 +528,8 @@ Changing the value of an existing path header is done by calling its
535 528
 
536 529
     $return->setAddress('my-address@example.org');
537 530
 
538
-When output via ``toString()``, a path header produces something
539
-like the following:
531
+When output via ``toString()``, a path header produces something like the
532
+following:
540 533
 
541 534
 .. code-block:: php
542 535
 
@@ -566,8 +559,7 @@ New headers can be added to the HeaderSet by using one of the provided
566 559
 
567 560
 To add a header to a MIME entity (such as the message):
568 561
 
569
-Get the HeaderSet from the entity by via its ``getHeaders()``
570
-method.
562
+Get the HeaderSet from the entity by via its ``getHeaders()`` method.
571 563
 
572 564
 * Add the header to the HeaderSet by calling one of the ``add..Header()``
573 565
   methods.
@@ -576,20 +568,20 @@ The added header will appear in the message when it is sent.
576 568
 
577 569
 .. code-block:: php
578 570
 
579
-    //Adding a custom header to a message
571
+    // Adding a custom header to a message
580 572
     $message = Swift_Message::newInstance();
581 573
     $headers = $message->getHeaders();
582 574
     $headers->addTextHeader('X-Mine', 'something here');
583 575
 
584
-    //Adding a custom header to an attachment
576
+    // Adding a custom header to an attachment
585 577
     $attachment = Swift_Attachment::fromPath('/path/to/doc.pdf');
586 578
     $attachment->getHeaders()->addDateHeader('X-Created-Time', time());
587 579
 
588 580
 Retrieving Headers
589 581
 ~~~~~~~~~~~~~~~~~~
590 582
 
591
-Headers are retrieved through the HeaderSet's ``get()`` and
592
-``getAll()`` methods.
583
+Headers are retrieved through the HeaderSet's ``get()`` and ``getAll()``
584
+methods.
593 585
 
594 586
 To get a header, or several headers from a MIME entity:
595 587
 
@@ -598,11 +590,10 @@ To get a header, or several headers from a MIME entity:
598 590
 * Get the header(s) from the HeaderSet by calling either ``get()`` or
599 591
   ``getAll()``.
600 592
 
601
-When using ``get()`` a single header is returned that matches the
602
-name (case insensitive) that is passed to it. When using
603
-``getAll()`` with a header name, an array of headers with that
604
-name are returned. Calling ``getAll()`` with no arguments returns
605
-an array of all headers present in the entity.
593
+When using ``get()`` a single header is returned that matches the name (case
594
+insensitive) that is passed to it. When using ``getAll()`` with a header name,
595
+an array of headers with that name are returned. Calling ``getAll()`` with no
596
+arguments returns an array of all headers present in the entity.
606 597
 
607 598
 .. note::
608 599
 
@@ -622,16 +613,16 @@ an array of all headers present in the entity.
622 613
 
623 614
         $headers = $message->getHeaders();
624 615
 
625
-        //Get the To: header
616
+        // Get the To: header
626 617
         $toHeader = $headers->get('To');
627 618
 
628
-        //Get all headers named "X-Foo"
619
+        // Get all headers named "X-Foo"
629 620
         $fooHeaders = $headers->getAll('X-Foo');
630 621
 
631
-        //Get the second header named "X-Foo"
622
+        // Get the second header named "X-Foo"
632 623
         $foo = $headers->get('X-Foo', 1);
633 624
 
634
-        //Get all headers that are present
625
+        // Get all headers that are present
635 626
         $all = $headers->getAll();
636 627
 
637 628
 Check if a Header Exists
@@ -647,8 +638,7 @@ To check if a header exists:
647 638
 * Call the HeaderSet's ``has()`` method specifying the header you're looking
648 639
   for.
649 640
 
650
-If the header exists, ``true`` will be returned or
651
-``false`` if not.
641
+If the header exists, ``true`` will be returned or ``false`` if not.
652 642
 
653 643
 .. note::
654 644
 
@@ -661,12 +651,12 @@ If the header exists, ``true`` will be returned or
661 651
 
662 652
         $headers = $message->getHeaders();
663 653
 
664
-        //Check if the To: header exists
654
+        // Check if the To: header exists
665 655
         if ($headers->has('To')) {
666 656
           echo 'To: exists';
667 657
         }
668 658
 
669
-        //Check if an X-Foo header exists twice (i.e. check for the 2nd one)
659
+        // Check if an X-Foo header exists twice (i.e. check for the 2nd one)
670 660
         if ($headers->has('X-Foo', 1)) {
671 661
           echo 'Second X-Foo header exists';
672 662
         }
@@ -684,9 +674,9 @@ To remove an existing header:
684 674
 * Call the HeaderSet's ``remove()`` or ``removeAll()`` methods specifying the
685 675
   header you want to remove.
686 676
 
687
-When calling ``remove()`` a single header will be removed. When
688
-calling ``removeAll()`` all headers with the given name will be
689
-removed. If no headers exist with the given name, no errors will occur.
677
+When calling ``remove()`` a single header will be removed. When calling
678
+``removeAll()`` all headers with the given name will be removed. If no headers
679
+exist with the given name, no errors will occur.
690 680
 
691 681
 .. note::
692 682
 
@@ -700,22 +690,22 @@ removed. If no headers exist with the given name, no errors will occur.
700 690
 
701 691
         $headers = $message->getHeaders();
702 692
 
703
-        //Remove the Subject: header
693
+        // Remove the Subject: header
704 694
         $headers->remove('Subject');
705 695
 
706
-        //Remove all X-Foo headers
696
+        // Remove all X-Foo headers
707 697
         $headers->removeAll('X-Foo');
708 698
 
709
-        //Remove only the second X-Foo header
699
+        // Remove only the second X-Foo header
710 700
         $headers->remove('X-Foo', 1);
711 701
 
712 702
 Modifying a Header's Content
713 703
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
714 704
 
715
-To change a Header's content you should know what type of header it is and
716
-then call it's appropriate setter method. All headers also have a
717
-``setFieldBodyModel()`` method that accepts a mixed parameter and
718
-delegates to the correct setter.
705
+To change a Header's content you should know what type of header it is and then
706
+call it's appropriate setter method. All headers also have a
707
+``setFieldBodyModel()`` method that accepts a mixed parameter and delegates to
708
+the correct setter.
719 709
 
720 710
 To modify an existing header:
721 711
 
@@ -733,18 +723,18 @@ when the message is sent.
733 723
 
734 724
     $headers = $message->getHeaders();
735 725
 
736
-    //Change the Subject: header
726
+    // Change the Subject: header
737 727
     $subj = $headers->get('Subject');
738 728
     $subj->setValue('new subject here');
739 729
 
740
-    //Change the To: header
730
+    // Change the To: header
741 731
     $to = $headers->get('To');
742 732
     $to->setNameAddresses(array(
743 733
       'person@example.org' => 'Person',
744 734
       'thing@example.org'
745 735
     ));
746 736
 
747
-    //Using the setFieldBodyModel() just delegates to the correct method
737
+    // Using the setFieldBodyModel() just delegates to the correct method
748 738
     // So here to calls setNameAddresses()
749 739
     $to->setFieldBodyModel(array(
750 740
       'person@example.org' => 'Person',

+ 1 - 1
vendor/swiftmailer/doc/including-the-files.rst Voir le fichier

@@ -1,7 +1,7 @@
1 1
 Including Swift Mailer (Autoloading)
2 2
 ====================================
3 3
 
4
-Swift Mailer uses an auto-loader so the only file you need to include is the
4
+Swift Mailer uses an autoloader so the only file you need to include is the
5 5
 ``lib/swift_required.php`` file.
6 6
 
7 7
 To use Swift Mailer's autoloader:

+ 20 - 20
vendor/swiftmailer/doc/installing.rst Voir le fichier

@@ -7,10 +7,10 @@ extracted source files to your web server.
7 7
 Installing from PEAR
8 8
 --------------------
9 9
 
10
-If you want to install Swiftmailer globally on your machine, the easiest
10
+If you want to install Swift Mailer globally on your machine, the easiest
11 11
 installation method is using the PEAR channel.
12 12
 
13
-To install the Swiftmailer PEAR package:
13
+To install the Swift Mailer PEAR package:
14 14
 
15 15
 * Run the command ``pear channel-discover pear.swiftmailer.org``.
16 16
 
@@ -48,9 +48,9 @@ the ``tar`` command.
48 48
 
49 49
 .. code-block:: bash
50 50
 
51
-    chrisbook:build chris$ ls
51
+    $ ls
52 52
     Swift-4.0.0-dev.tar.gz
53
-    chrisbook:build chris$ tar xvzf Swift-4.0.0-dev.tar.gz 
53
+    $ tar xvzf Swift-4.0.0-dev.tar.gz 
54 54
     Swift-4.0.0-dev/
55 55
     Swift-4.0.0-dev/lib/
56 56
     Swift-4.0.0-dev/lib/classes/
@@ -66,10 +66,10 @@ the ``tar`` command.
66 66
     Swift-4.0.0-dev/tests/unit/Swift/Transport/LoadBalancedTransportTest.php
67 67
     Swift-4.0.0-dev/tests/unit/Swift/Transport/SendmailTransportTest.php
68 68
     Swift-4.0.0-dev/tests/unit/Swift/Transport/StreamBufferTest.php
69
-    chrisbook:build chris$ cd Swift-4.0.0-dev
70
-    chrisbook:Swift-4.0.0-dev chris$ ls
69
+    $ cd Swift-4.0.0-dev
70
+    $ ls
71 71
     CHANGES		LICENSE.GPL	LICENSE.LGPL	README		VERSION		examples	lib		test-suite	tests
72
-    chrisbook:Swift-4.0.0-dev chris$
72
+    $
73 73
 
74 74
 Installing from Git
75 75
 -------------------
@@ -111,8 +111,8 @@ OS X.
111 111
 
112 112
 .. code-block:: bash
113 113
 
114
-    chrisbook:~ chris$ cd source_code/
115
-    chrisbook:source_code chris$ git clone git://github.com/swiftmailer/swiftmailer.git swiftmailer
114
+    $ cd source_code/
115
+    $ git clone git://github.com/swiftmailer/swiftmailer.git swiftmailer
116 116
     Initialized empty Git repository in /Users/chris/source_code/swiftmailer/.git/
117 117
     remote: Counting objects: 6815, done.
118 118
     remote: Compressing objects: 100% (2761/2761), done.
@@ -120,11 +120,11 @@ OS X.
120 120
     Receiving objects: 100% (6815/6815), 4.35 MiB | 162 KiB/s, done.
121 121
     Resolving deltas: 100% (3641/3641), done.
122 122
     Checking out files: 100% (1847/1847), done.
123
-    chrisbook:source_code chris$ cd swiftmailer/
124
-    chrisbook:swiftmailer chris$ ls
123
+    $ cd swiftmailer/
124
+    $ ls
125 125
     CHANGES		LICENSE.LGPL	README.git	VERSION		docs		lib		test-suite	util
126 126
     LICENSE.GPL	README		TODO		build.xml	examples	notes		tests
127
-    chrisbook:swiftmailer chris$
127
+    $
128 128
 
129 129
 Uploading to your Host
130 130
 ----------------------
@@ -133,8 +133,8 @@ You only need to upload the "lib/" directory to your web host for production
133 133
 use. All other files and directories are support files not needed in
134 134
 production.
135 135
 
136
-You will need FTP, rsync or similar software installed in order to upload the
137
-"lib/" directory to your web host.
136
+You will need FTP, ``rsync`` or similar software installed in order to upload 
137
+the "lib/" directory to your web host.
138 138
 
139 139
 To upload Swift Mailer:
140 140
 
@@ -150,12 +150,12 @@ The following example shows show you can upload the files using
150 150
 
151 151
 .. note::
152 152
 
153
-    You do not need to place the files inside your web root. They only need to be in a place
154
-    where your PHP scripts can "include" them.
153
+    You do not need to place the files inside your web root. They only need to 
154
+    be in a place where your PHP scripts can "include" them.
155 155
 
156 156
     .. code-block:: bash
157 157
 
158
-        chrisbook:Swift-4.0.0-dev chris$ rsync -rvz lib d11wtq@swiftmailer.org:swiftmailer
158
+        $ rsync -rvz lib d11wtq@swiftmailer.org:swiftmailer
159 159
         building file list ... done
160 160
         created directory swiftmailer
161 161
         lib/
@@ -174,14 +174,14 @@ The following example shows show you can upload the files using
174 174
 
175 175
         sent 151692 bytes  received 2974 bytes  5836.45 bytes/sec
176 176
         total size is 401405  speedup is 2.60
177
-        chrisbook:Swift-4.0.0-dev chris$
177
+        $
178 178
 
179 179
 .. _`github`: http://github.com/swiftmailer/swiftmailer
180 180
 
181 181
 Troubleshooting
182 182
 ---------------
183 183
 
184
-Swiftmailer does not work when used with function overloading as implemented
184
+Swift Mailer does not work when used with function overloading as implemented
185 185
 by ``mbstring`` (``mbstring.func_overload`` set to ``2``). A workaround is to
186 186
 temporarily change the internal encoding to ``ASCII`` when sending an email:
187 187
 
@@ -193,7 +193,7 @@ temporarily change the internal encoding to ``ASCII`` when sending an email:
193 193
       mb_internal_encoding('ASCII');
194 194
     }
195 195
 
196
-    // Creation your message and send it with Swiftmailer
196
+    // Create your message and send it with Swift Mailer
197 197
 
198 198
     if (isset($mbEncoding))
199 199
     {

+ 110 - 122
vendor/swiftmailer/doc/messages.rst Voir le fichier

@@ -30,25 +30,25 @@ To create a Message:
30 30
 
31 31
     require_once 'lib/swift_required.php';
32 32
 
33
-    //Create the message
33
+    // Create the message
34 34
     $message = Swift_Message::newInstance()
35 35
 
36
-      //Give the message a subject
36
+      // Give the message a subject
37 37
       ->setSubject('Your subject')
38 38
 
39
-      //Set the From address with an associative array
39
+      // Set the From address with an associative array
40 40
       ->setFrom(array('john@doe.com' => 'John Doe'))
41 41
 
42
-      //Set the To addresses with an associative array
42
+      // Set the To addresses with an associative array
43 43
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
44 44
 
45
-      //Give it a body
45
+      // Give it a body
46 46
       ->setBody('Here is the message itself')
47 47
 
48
-      //And optionally an alternative body
48
+      // And optionally an alternative body
49 49
       ->addPart('<q>Here is the message itself</q>', 'text/html')
50 50
 
51
-      //Optionally add any attachments
51
+      // Optionally add any attachments
52 52
       ->attach(Swift_Attachment::fromPath('my-document.pdf'))
53 53
       ;
54 54
 
@@ -170,13 +170,14 @@ Adding Content to Your Message
170 170
 ------------------------------
171 171
 
172 172
 Rich content can be added to messages in Swift Mailer with relative ease by
173
-calling methods such as setSubject(), setBody(), addPart() and attach().
173
+calling methods such as ``setSubject()``, ``setBody()``, ``addPart()`` and
174
+``attach()``.
174 175
 
175 176
 Setting the Subject Line
176 177
 ~~~~~~~~~~~~~~~~~~~~~~~~
177 178
 
178 179
 The subject line, displayed in the recipients' mail client can be set with the
179
-setSubject() method, or as a parameter to Swift_Message::newInstance().
180
+``setSubject()`` method, or as a parameter to ``Swift_Message::newInstance()``.
180 181
 
181 182
 To set the subject of your Message:
182 183
 
@@ -195,8 +196,8 @@ Setting the Body Content
195 196
 ~~~~~~~~~~~~~~~~~~~~~~~~
196 197
 
197 198
 The body of the message -- seen when the user opens the message --
198
-is specified by calling the setBody() method. If an alternative body is to be
199
-included addPart() can be used.
199
+is specified by calling the ``setBody()`` method. If an alternative body is to
200
+be included ``addPart()`` can be used.
200 201
 
201 202
 The body of a message is the main part that is read by the user. Often people
202 203
 want to send a message in HTML format (``text/html``), other
@@ -215,27 +216,27 @@ To set the body of your Message:
215 216
 
216 217
 * Add any alternative bodies with ``addPart()``.
217 218
 
218
-If the recipient's mail client offers preferences for displaying text vs. HTML then
219
-the mail client will present that part to the user where available.  In other cases
220
-the mail client will display the "best" part it can - usually HTML if you've included
221
-HTML.
219
+If the recipient's mail client offers preferences for displaying text vs. HTML
220
+then the mail client will present that part to the user where available.  In
221
+other cases the mail client will display the "best" part it can - usually HTML
222
+if you've included HTML.
222 223
 
223 224
 .. code-block:: php
224 225
 
225
-    //Pass it as a parameter when you create the message
226
+    // Pass it as a parameter when you create the message
226 227
     $message = Swift_Message::newInstance('Subject here', 'My amazing body');  
227 228
 
228
-    //Or set it after like this
229
+    // Or set it after like this
229 230
     $message->setBody('My <em>amazing</em> body', 'text/html');
230 231
 
231
-    //Add alternative parts with addPart()
232
+    // Add alternative parts with addPart()
232 233
     $message->addPart('My amazing body in plain text', 'text/plain');
233 234
 
234 235
 Attaching Files
235 236
 ---------------
236 237
 
237 238
 Attachments are downloadable parts of a message and can be added by calling
238
-the attach() method on the message. You can add attachments that exist on
239
+the ``attach()`` method on the message. You can add attachments that exist on
239 240
 disk, or you can create attachments on-the-fly.
240 241
 
241 242
 Attachments are actually an interesting area of Swift Mailer and something
@@ -258,7 +259,7 @@ Attaching Existing Files
258 259
 ~~~~~~~~~~~~~~~~~~~~~~~~
259 260
 
260 261
 Files that already exist, either on disk or at a URL can be attached to a
261
-message with just one line of code, using Swift_Attachment::fromPath().
262
+message with just one line of code, using ``Swift_Attachment::fromPath()``.
262 263
 
263 264
 You can attach files that exist locally, or if your PHP installation has
264 265
 ``allow_url_fopen`` turned on you can attach files from other
@@ -275,19 +276,19 @@ the same filename as the one you attached.
275 276
 
276 277
 .. code-block:: php
277 278
 
278
-    //Create the attachment
279
+    // Create the attachment
279 280
     // * Note that you can technically leave the content-type parameter out
280 281
     $attachment = Swift_Attachment::fromPath('/path/to/image.jpg', 'image/jpeg');  
281 282
 
282
-    //Attach it to the message
283
+    // Attach it to the message
283 284
     $message->attach($attachment);
284 285
 
285 286
 
286
-    //The two statements above could be written in one line instead
287
+    // The two statements above could be written in one line instead
287 288
     $message->attach(Swift_Attachment::fromPath('/path/to/image.jpg'));
288 289
 
289 290
 
290
-    //You can attach files from a URL if allow_url_fopen is on in php.ini
291
+    // You can attach files from a URL if allow_url_fopen is on in php.ini
291 292
     $message->attach(Swift_Attachment::fromPath('http://site.tld/logo.png'));
292 293
 
293 294
 Setting the Filename
@@ -295,7 +296,7 @@ Setting the Filename
295 296
 
296 297
 Usually you don't need to explicitly set the filename of an attachment because
297 298
 the name of the attached file will be used by default, but if you want to set
298
-the filename you use the setFilename() method of the Attachment.
299
+the filename you use the ``setFilename()`` method of the Attachment.
299 300
 
300 301
 To change the filename of an attachment:
301 302
 
@@ -306,12 +307,12 @@ the email will rename the file to something else.
306 307
 
307 308
 .. code-block:: php
308 309
 
309
-    //Create the attachment and call its setFilename() method
310
+    // Create the attachment and call its setFilename() method
310 311
     $attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
311 312
       ->setFilename('cool.jpg');
312 313
 
313 314
 
314
-    //Because there's a fluid interface, you can do this in one statement
315
+    // Because there's a fluid interface, you can do this in one statement
315 316
     $message->attach(
316 317
       Swift_Attachment::fromPath('/path/to/image.jpg')->setFilename('cool.jpg')
317 318
     );
@@ -321,7 +322,7 @@ Attaching Dynamic Content
321 322
 
322 323
 Files that are generated at runtime, such as PDF documents or images created
323 324
 via GD can be attached directly to a message without writing them out to disk.
324
-Use the standard Swift_Attachment::newInstance() method.
325
+Use the standard ``Swift_Attachment::newInstance()`` method.
325 326
 
326 327
 To attach dynamically created content:
327 328
 
@@ -342,17 +343,17 @@ with the filename and content-type you specify.
342 343
 
343 344
     .. code-block:: php
344 345
 
345
-        //Create your file contents in the normal way, but don't write them to disk
346
+        // Create your file contents in the normal way, but don't write them to disk
346 347
         $data = create_my_pdf_data();
347 348
 
348
-        //Create the attachment with your data
349
-        $attachment = Swift_Attachment::newInstance($data, 'my-file.pdf', 'application/pdf');  
349
+        // Create the attachment with your data
350
+        $attachment = Swift_Attachment::newInstance($data, 'my-file.pdf', 'application/pdf');
350 351
 
351
-        //Attach it to the message
352
+        // Attach it to the message
352 353
         $message->attach($attachment);
353 354
 
354 355
 
355
-        //You can alternatively use method chaining to build the attachment
356
+        // You can alternatively use method chaining to build the attachment
356 357
         $attachment = Swift_Attachment::newInstance()
357 358
           ->setFilename('my-file.pdf')
358 359
           ->setContentType('application/pdf')
@@ -364,7 +365,7 @@ Changing the Disposition
364 365
 
365 366
 Attachments just appear as files that can be saved to the Desktop if desired.
366 367
 You can make attachment appear inline where possible by using the
367
-setDisposition() method of an attachment.
368
+``setDisposition()`` method of an attachment.
368 369
 
369 370
 To make an attachment appear inline:
370 371
 
@@ -381,12 +382,12 @@ client knows how to display it.
381 382
 
382 383
     .. code-block:: php
383 384
 
384
-        //Create the attachment and call its setDisposition() method
385
+        // Create the attachment and call its setDisposition() method
385 386
         $attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
386 387
           ->setDisposition('inline');
387 388
 
388 389
 
389
-        //Because there's a fluid interface, you can do this in one statement
390
+        // Because there's a fluid interface, you can do this in one statement
390 391
         $message->attach(
391 392
           Swift_Attachment::fromPath('/path/to/image.jpg')->setDisposition('inline')
392 393
         );
@@ -424,11 +425,10 @@ Embedding Existing Files
424 425
 ........................
425 426
 
426 427
 Files that already exist, either on disk or at a URL can be embedded in a
427
-message with just one line of code, using Swift_EmbeddedFile::fromPath().
428
+message with just one line of code, using ``Swift_EmbeddedFile::fromPath()``.
428 429
 
429 430
 You can embed files that exist locally, or if your PHP installation has
430
-``allow_url_fopen`` turned on you can embed files from other
431
-websites.
431
+``allow_url_fopen`` turned on you can embed files from other websites.
432 432
 
433 433
 To embed an existing file:
434 434
 
@@ -451,24 +451,24 @@ is used as a ``src`` attribute.
451 451
 
452 452
     .. code-block:: php
453 453
 
454
-        //Create the message
454
+        // Create the message
455 455
         $message = Swift_Message::newInstance('My subject');
456 456
 
457
-        //Set the body
457
+        // Set the body
458 458
         $message->setBody(
459 459
         '<html>' .
460 460
         ' <head></head>' .
461 461
         ' <body>' .
462
-        '  Here is an image <img src="' . //Embed the file
462
+        '  Here is an image <img src="' . // Embed the file
463 463
              $message->embed(Swift_Image::fromPath('image.png')) .
464 464
            '" alt="Image" />' .
465 465
         '  Rest of message' .
466 466
         ' </body>' .
467 467
         '</html>',
468
-          'text/html' //Mark the content-type as HTML
468
+          'text/html' // Mark the content-type as HTML
469 469
         );
470 470
 
471
-        //You can embed files from a URL if allow_url_fopen is on in php.ini
471
+        // You can embed files from a URL if allow_url_fopen is on in php.ini
472 472
         $message->setBody(
473 473
         '<html>' .
474 474
         ' <head></head>' .
@@ -495,7 +495,7 @@ is used as a ``src`` attribute.
495 495
         '  Rest of message' .
496 496
         ' </body>' .
497 497
         '</html>',
498
-          'text/html' //Mark the content-type as HTML
498
+          'text/html' // Mark the content-type as HTML
499 499
         );
500 500
 
501 501
 Embedding Dynamic Content
@@ -503,7 +503,7 @@ Embedding Dynamic Content
503 503
 
504 504
 Images that are generated at runtime, such as images created via GD can be
505 505
 embedded directly to a message without writing them out to disk. Use the
506
-standard Swift_Image::newInstance() method.
506
+standard ``Swift_Image::newInstance()`` method.
507 507
 
508 508
 To embed dynamically created content:
509 509
 
@@ -527,7 +527,7 @@ is used as a ``src`` attribute.
527 527
 
528 528
     .. code-block:: php
529 529
 
530
-        //Create your file contents in the normal way, but don't write them to disk
530
+        // Create your file contents in the normal way, but don't write them to disk
531 531
         $img_data = create_my_image_data();
532 532
 
533 533
         //Create the message
@@ -538,13 +538,13 @@ is used as a ``src`` attribute.
538 538
         '<html>' .
539 539
         ' <head></head>' .
540 540
         ' <body>' .
541
-        '  Here is an image <img src="' . //Embed the file
541
+        '  Here is an image <img src="' . // Embed the file
542 542
              $message->embed(Swift_Image::newInstance($img_data, 'image.jpg', 'image/jpeg')) .
543 543
            '" alt="Image" />' .
544 544
         '  Rest of message' .
545 545
         ' </body>' .
546 546
         '</html>',
547
-          'text/html' //Mark the content-type as HTML
547
+          'text/html' // Mark the content-type as HTML
548 548
         );
549 549
 
550 550
 
@@ -560,15 +560,15 @@ is used as a ``src`` attribute.
560 560
         '  Rest of message' .
561 561
         ' </body>' .
562 562
         '</html>',
563
-          'text/html' //Mark the content-type as HTML
563
+          'text/html' // Mark the content-type as HTML
564 564
         );
565 565
 
566 566
 Adding Recipients to Your Message
567 567
 ---------------------------------
568 568
 
569
-Recipients are specified within the message itself via setTo(), setCc() and
570
-setBcc(). Swift Mailer reads these recipients from the message when it gets
571
-sent so that it knows where to send the message to.
569
+Recipients are specified within the message itself via ``setTo()``, ``setCc()``
570
+and ``setBcc()``. Swift Mailer reads these recipients from the message when it
571
+gets sent so that it knows where to send the message to.
572 572
 
573 573
 Message recipients are one of three types:
574 574
 
@@ -584,8 +584,8 @@ providing the real name of the recipient.
584 584
 
585 585
 .. sidebar:: Syntax for Addresses
586 586
 
587
-    If you only wish to refer to a single email address (for example your ``From:``
588
-    address) then you can just use a string.
587
+    If you only wish to refer to a single email address (for example your
588
+    ``From:`` address) then you can just use a string.
589 589
 
590 590
     .. code-block:: php
591 591
 
@@ -604,14 +604,14 @@ providing the real name of the recipient.
604 604
          $message->setTo(array('some@address.tld', 'other@address.tld'));
605 605
 
606 606
     You can mix personalized (addresses with a name) and non-personalized
607
-    addresses in the same list by mixing the use of associative and non-associative
608
-    array syntax.
607
+    addresses in the same list by mixing the use of associative and
608
+    non-associative array syntax.
609 609
 
610 610
     .. code-block:: php
611 611
 
612 612
          $message->setTo(array(
613 613
            'recipient-with-name@example.org' => 'Recipient Name One',
614
-           'no-name@example.org', //Note that this is not a key-value pair
614
+           'no-name@example.org', // Note that this is not a key-value pair
615 615
            'named-recipient@example.org' => 'Recipient Name Two'
616 616
          ));
617 617
 
@@ -622,9 +622,8 @@ Setting ``To:`` Recipients
622 622
 ``setTo()`` or ``addTo()`` methods of the message.
623 623
 
624 624
 To set ``To:`` recipients, create the message object using either
625
-``new Swift_Message( ... )`` or
626
-``Swift_Message::newInstance( ... )``, then call the
627
-``setTo()`` method with a complete array of addresses, or use the
625
+``new Swift_Message( ... )`` or ``Swift_Message::newInstance( ... )``,
626
+then call the ``setTo()`` method with a complete array of addresses, or use the
628 627
 ``addTo()`` method to iteratively add recipients.
629 628
 
630 629
 The ``setTo()`` method accepts input in various formats as described earlier in
@@ -643,7 +642,7 @@ seen by the other recipients.
643 642
 
644 643
     .. code-block:: php
645 644
 
646
-        //Using setTo() to set all recipients in one go
645
+        // Using setTo() to set all recipients in one go
647 646
         $message->setTo(array(
648 647
           'person1@example.org',
649 648
           'person2@otherdomain.org' => 'Person 2 Name',
@@ -652,20 +651,19 @@ seen by the other recipients.
652 651
           'person5@example.org' => 'Person 5 Name'
653 652
         ));
654 653
 
655
-        //Using addTo() to add recipients iteratively
654
+        // Using addTo() to add recipients iteratively
656 655
         $message->addTo('person1@example.org');
657 656
         $message->addTo('person2@example.org', 'Person 2 Name');
658 657
 
659 658
 Setting ``Cc:`` Recipients
660 659
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
661 660
 
662
-``Cc:`` recipients are set with the
663
-``setCc()`` or ``addCc()`` methods of the message.
661
+``Cc:`` recipients are set with the ``setCc()`` or ``addCc()`` methods of the 
662
+message.
664 663
 
665 664
 To set ``Cc:`` recipients, create the message object using either
666
-``new Swift_Message( ... )`` or
667
-``Swift_Message::newInstance( ... )``, then call the
668
-``setCc()`` method with a complete array of addresses, or use the
665
+``new Swift_Message( ... )`` or ``Swift_Message::newInstance( ... )``, then call 
666
+the ``setCc()`` method with a complete array of addresses, or use the
669 667
 ``addCc()`` method to iteratively add recipients.
670 668
 
671 669
 The ``setCc()`` method accepts input in various formats as described earlier in
@@ -684,7 +682,7 @@ seen by the other recipients.
684 682
 
685 683
     .. code-block:: php
686 684
 
687
-        //Using setCc() to set all recipients in one go
685
+        // Using setCc() to set all recipients in one go
688 686
         $message->setCc(array(
689 687
           'person1@example.org',
690 688
           'person2@otherdomain.org' => 'Person 2 Name',
@@ -693,20 +691,18 @@ seen by the other recipients.
693 691
           'person5@example.org' => 'Person 5 Name'
694 692
         ));
695 693
 
696
-        //Using addCc() to add recipients iteratively
694
+        // Using addCc() to add recipients iteratively
697 695
         $message->addCc('person1@example.org');
698 696
         $message->addCc('person2@example.org', 'Person 2 Name');
699 697
 
700 698
 Setting ``Bcc:`` Recipients
701 699
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
702 700
 
703
-``Bcc:`` recipients receive a copy of the message without anybody
704
-else knowing it, and are set with the ``setBcc()`` or
705
-``addBcc`` methods of the message.
701
+``Bcc:`` recipients receive a copy of the message without anybody else knowing
702
+it, and are set with the ``setBcc()`` or ``addBcc()`` methods of the message.
706 703
 
707
-To set ``Bcc:`` recipients, create the message object using
708
-either ``new Swift_Message( ... )`` or
709
-``Swift_Message::newInstance( ... )``, then call the
704
+To set ``Bcc:`` recipients, create the message object using either ``new 
705
+Swift_Message( ... )`` or ``Swift_Message::newInstance( ... )``, then call the
710 706
 ``setBcc()`` method with a complete array of addresses, or use
711 707
 the ``addBcc()`` method to iteratively add recipients.
712 708
 
@@ -715,9 +711,9 @@ this chapter. The ``addBcc()`` method takes either one or two parameters. The
715 711
 first being the email address and the second optional parameter being the name
716 712
 of the recipient.
717 713
 
718
-Only the individual ``Bcc:`` recipient will see their address in
719
-the message headers. Other recipients (including other ``Bcc:``
720
-recipients) will not see the address.
714
+Only the individual ``Bcc:`` recipient will see their address in the message 
715
+headers. Other recipients (including other ``Bcc:`` recipients) will not see the 
716
+address.
721 717
 
722 718
 .. note::
723 719
 
@@ -727,7 +723,7 @@ recipients) will not see the address.
727 723
 
728 724
     .. code-block:: php
729 725
 
730
-        //Using setBcc() to set all recipients in one go
726
+        // Using setBcc() to set all recipients in one go
731 727
         $message->setBcc(array(
732 728
           'person1@example.org',
733 729
           'person2@otherdomain.org' => 'Person 2 Name',
@@ -736,7 +732,7 @@ recipients) will not see the address.
736 732
           'person5@example.org' => 'Person 5 Name'
737 733
         ));
738 734
 
739
-        //Using addBcc() to add recipients iteratively
735
+        // Using addBcc() to add recipients iteratively
740 736
         $message->addBcc('person1@example.org');
741 737
         $message->addBcc('person2@example.org', 'Person 2 Name');
742 738
 
@@ -755,27 +751,24 @@ The sender information is contained in three possible places:
755 751
 
756 752
 * ``Return-Path:`` -- the address where bounces should go to (optional)
757 753
 
758
-You must always include a ``From:`` address by using
759
-``setFrom()`` on the message. Swift Mailer will use this as the
760
-default ``Return-Path:`` unless otherwise specified.
754
+You must always include a ``From:`` address by using ``setFrom()`` on the 
755
+message. Swift Mailer will use this as the default ``Return-Path:`` unless 
756
+otherwise specified.
761 757
 
762
-The ``Sender:`` address exists because the person who actually
763
-sent the email may not be the person who wrote the email. It has a higher
764
-precedence than the ``From:`` address and will be used as the
765
-``Return-Path:`` unless otherwise specified.
758
+The ``Sender:`` address exists because the person who actually sent the email
759
+may not be the person who wrote the email. It has a higher precedence than the
760
+``From:`` address and will be used as the ``Return-Path:`` unless otherwise 
761
+specified.
766 762
 
767 763
 Setting the ``From:`` Address
768 764
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
769 765
 
770
-A ``From:`` address is required and is set with the
771
-``setFrom()`` method of the message.
772
-
773
-``From:`` addresses specify who actually wrote the email, and
774
-usually who sent it.
766
+A ``From:`` address is required and is set with the ``setFrom()`` method of the
767
+message. ``From:`` addresses specify who actually wrote the email, and usually who sent it.
775 768
 
776 769
 What most people probably don't realise is that you can have more than one
777
-``From:`` address if more than one person wrote the email --
778
-for example if an email was put together by a committee.
770
+``From:`` address if more than one person wrote the email -- for example if an
771
+email was put together by a committee.
779 772
 
780 773
 To set the ``From:`` address(es):
781 774
 
@@ -791,13 +784,13 @@ will be seen by the recipients.
791 784
 
792 785
     .. code-block:: php
793 786
 
794
-        //Set a single From: address
787
+        // Set a single From: address
795 788
         $message->setFrom('your@address.tld');
796 789
 
797
-        //Set a From: address including a name
790
+        // Set a From: address including a name
798 791
         $message->setFrom(array('your@address.tld' => 'Your Name'));
799 792
 
800
-        //Set multiple From: addresses if multiple people wrote the email
793
+        // Set multiple From: addresses if multiple people wrote the email
801 794
         $message->setFrom(array(
802 795
           'person1@example.org' => 'Sender One',
803 796
           'person2@example.org' => 'Sender Two'
@@ -806,18 +799,17 @@ will be seen by the recipients.
806 799
 Setting the ``Sender:`` Address
807 800
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
808 801
 
809
-A ``Sender:`` address specifies who sent the message and is set
810
-with the ``setSender()`` method of the message.
802
+A ``Sender:`` address specifies who sent the message and is set with the
803
+``setSender()`` method of the message.
811 804
 
812 805
 To set the ``Sender:`` address:
813 806
 
814 807
 * Call the ``setSender()`` method on the Message.
815 808
 
816
-The ``Sender:`` address is visible in the message headers and
817
-will be seen by the recipients.
809
+The ``Sender:`` address is visible in the message headers and will be seen by
810
+the recipients.
818 811
 
819
-This address will be used as the ``Return-Path:`` unless
820
-otherwise specified.
812
+This address will be used as the ``Return-Path:`` unless otherwise specified.
821 813
 
822 814
 .. note::
823 815
 
@@ -878,8 +870,8 @@ Setting the Character Set
878 870
 -------------------------
879 871
 
880 872
 The character set of the message (and it's MIME parts) is set with the
881
-setCharset() method. You can also change the global default of UTF-8 by
882
-working with the Swift_Preferences class.
873
+``setCharset()`` method. You can also change the global default of UTF-8 by
874
+working with the ``Swift_Preferences`` class.
883 875
 
884 876
 Swift Mailer will default to the UTF-8 character set unless otherwise
885 877
 overridden. UTF-8 will work in most instances since it includes all of the
@@ -891,7 +883,7 @@ completely garbled.
891 883
 
892 884
 There are two places in Swift Mailer where you can change the character set:
893 885
 
894
-* In the Swift_Preferences class
886
+* In the ``Swift_Preferences`` class
895 887
 
896 888
 * On each individual message and/or MIME part
897 889
 
@@ -904,25 +896,24 @@ To set the character set of your Message:
904 896
 
905 897
    .. code-block:: php
906 898
 
907
-    //Approach 1: Change the global setting (suggested)
899
+    // Approach 1: Change the global setting (suggested)
908 900
     Swift_Preferences::getInstance()->setCharset('iso-8859-2');
909 901
 
910
-    //Approach 2: Call the setCharset() method of the message
902
+    // Approach 2: Call the setCharset() method of the message
911 903
     $message = Swift_Message::newInstance()
912 904
       ->setCharset('iso-8859-2');
913 905
 
914
-    //Apprach 3: Specify the charset when setting the body
906
+    // Apprach 3: Specify the charset when setting the body
915 907
     $message->setBody('My body', 'text/html', 'iso-8859-2');
916 908
 
917
-    //Approach 4: Specify the charset for each part added
909
+    // Approach 4: Specify the charset for each part added
918 910
     $message->addPart('My part', 'text/plain', 'iso-8859-2');
919 911
 
920 912
 Setting the Line Length
921 913
 -----------------------
922 914
 
923
-The length of lines in a message can be changed by using the
924
-``setMaxLineLength()`` method on the message. It should be kept
925
-to less than 1000 characters.
915
+The length of lines in a message can be changed by using the ``setMaxLineLength()`` method on the message. It should be kept to less than
916
+1000 characters.
926 917
 
927 918
 Swift Mailer defaults to using 78 characters per line in a message. This is
928 919
 done for historical reasons and so that the message can be easily viewed in
@@ -949,15 +940,12 @@ words.
949 940
 Setting the Message Priority
950 941
 ----------------------------
951 942
 
952
-You can change the priority of the message with
953
-``setPriority()``. Setting the priority will not change the way
954
-your email is sent -- it is purely an indicative setting for the
955
-recipient.
943
+You can change the priority of the message with ``setPriority()``. Setting the
944
+priority will not change the way your email is sent -- it is purely an
945
+indicative setting for the recipient.
956 946
 
957 947
 The priority of a message is an indication to the recipient what significance
958
-it has. Swift Mailer allows you to set the priority by calling the
959
-``setPriority`` method. This method takes an integer value
960
-between 1 and 5:
948
+it has. Swift Mailer allows you to set the priority by calling the ``setPriority`` method. This method takes an integer value between 1 and 5:
961 949
 
962 950
 * Highest
963 951
 * High
@@ -972,5 +960,5 @@ To set the message priority:
972 960
 
973 961
 .. code-block:: php
974 962
 
975
-    //Indicate "High" priority
963
+    // Indicate "High" priority
976 964
     $message->setPriority(2);

+ 36 - 40
vendor/swiftmailer/doc/plugins.rst Voir le fichier

@@ -34,10 +34,9 @@ chance to process its queue and recover some resources.
34 34
 Using the AntiFlood Plugin
35 35
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
36 36
 
37
-The AntiFlood Plugin -- like all plugins -- is added with the Mailer
38
-class' ``registerPlugin()`` method. It takes two constructor
39
-parameters: the number of emails to pause after, and optionally the number of
40
-seconds to pause for.
37
+The AntiFlood Plugin -- like all plugins -- is added with the Mailer class'
38
+``registerPlugin()`` method. It takes two constructor parameters: the number of
39
+emails to pause after, and optionally the number of seconds to pause for.
41 40
 
42 41
 To use the AntiFlood plugin:
43 42
 
@@ -59,18 +58,18 @@ specified amount of time.
59 58
 
60 59
     require_once 'lib/swift_required.php';
61 60
 
62
-    //Create the Mailer using any Transport
61
+    // Create the Mailer using any Transport
63 62
     $mailer = Swift_Mailer::newInstance(
64 63
       Swift_SmtpTransport::newInstance('smtp.example.org', 25)
65 64
     );
66 65
 
67
-    //Use AntiFlood to re-connect after 100 emails
66
+    // Use AntiFlood to re-connect after 100 emails
68 67
     $mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100));
69 68
 
70
-    //Or specify a time in seconds to pause for (30 secs)
69
+    // And specify a time in seconds to pause for (30 secs)
71 70
     $mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 30));
72 71
 
73
-    //Continue sending as normal
72
+    // Continue sending as normal
74 73
     for ($lotsOfRecipients as $recipient) {
75 74
       ...
76 75
 
@@ -96,9 +95,9 @@ bytes-transferred per-minute.
96 95
 Using the Throttler Plugin
97 96
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
98 97
 
99
-The Throttler Plugin -- like all plugins -- is added with the Mailer
100
-class' ``registerPlugin()`` method. It has two required
101
-constructor parameters that tell it how to do its rate-limiting.
98
+The Throttler Plugin -- like all plugins -- is added with the Mailer class'
99
+``registerPlugin()`` method. It has two required constructor parameters that
100
+tell it how to do its rate-limiting.
102 101
 
103 102
 To use the Throttler plugin:
104 103
 
@@ -112,31 +111,30 @@ To use the Throttler plugin:
112 111
 
113 112
 * Continue using Swift Mailer to send messages as normal.
114 113
 
115
-When Swift Mailer sends messages it will keep track of the rate at which
116
-sending messages is occuring. If it realises that sending is happening too
117
-fast, it will cause your program to ``sleep()`` for enough time
118
-to average out the rate.
114
+When Swift Mailer sends messages it will keep track of the rate at which sending
115
+messages is occurring. If it realises that sending is happening too fast, it
116
+will cause your program to ``sleep()`` for enough time to average out the rate.
119 117
 
120 118
 .. code-block:: php
121 119
 
122 120
     require_once 'lib/swift_required.php';
123 121
 
124
-    //Create the Mailer using any Transport
122
+    // Create the Mailer using any Transport
125 123
     $mailer = Swift_Mailer::newInstance(
126 124
       Swift_SmtpTransport::newInstance('smtp.example.org', 25)
127 125
     );
128 126
 
129
-    //Rate limit to 100 emails per-minute
127
+    // Rate limit to 100 emails per-minute
130 128
     $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
131 129
       100, Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE
132 130
     ));
133 131
 
134
-    //Rate limit to 10MB per-minute
132
+    // Rate limit to 10MB per-minute
135 133
     $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
136 134
       1024 * 1024 * 10, Swift_Plugins_ThrottlerPlugin::BYTES_PER_MINUTE
137 135
     ));
138 136
 
139
-    //Continue sending as normal
137
+    // Continue sending as normal
140 138
     for ($lotsOfRecipients as $recipient) {
141 139
       ...
142 140
 
@@ -175,9 +173,9 @@ class that implements the ``Swift_Plugins_Logger`` interface.
175 173
 Using the Logger Plugin
176 174
 ~~~~~~~~~~~~~~~~~~~~~~~
177 175
 
178
-The Logger Plugin -- like all plugins -- is added with the Mailer
179
-class' ``registerPlugin()`` method. It accepts an instance of
180
-``Swift_Plugins_Logger`` in its constructor.
176
+The Logger Plugin -- like all plugins -- is added with the Mailer class'
177
+``registerPlugin()`` method. It accepts an instance of ``Swift_Plugins_Logger``
178
+in its constructor.
181 179
 
182 180
 To use the Logger plugin:
183 181
 
@@ -204,20 +202,20 @@ get the contents of the log.
204 202
 
205 203
     require_once 'lib/swift_required.php';
206 204
 
207
-    //Create the Mailer using any Transport
205
+    // Create the Mailer using any Transport
208 206
     $mailer = Swift_Mailer::newInstance(
209 207
      Swift_SmtpTransport::newInstance('smtp.example.org', 25)
210 208
     );
211 209
 
212
-    //To use the ArrayLogger
210
+    // To use the ArrayLogger
213 211
     $logger = new Swift_Plugins_Loggers_ArrayLogger();
214 212
     $mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));
215 213
 
216
-    //Or to use the Echo Logger
214
+    // Or to use the Echo Logger
217 215
     $logger = new Swift_Plugins_Loggers_EchoLogger();
218 216
     $mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));
219 217
 
220
-    //Continue sending as normal
218
+    // Continue sending as normal
221 219
     for ($lotsOfRecipients as $recipient) {
222 220
      ...
223 221
 
@@ -252,9 +250,9 @@ find the required replacements during sending.
252 250
 Using the Decorator Plugin
253 251
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
254 252
 
255
-To use the Decorator plugin, simply create an associative array of
256
-replacements based on email addresses and then use the mailer's
257
-``registerPlugin()`` method to add the plugin.
253
+To use the Decorator plugin, simply create an associative array of replacements
254
+based on email addresses and then use the mailer's ``registerPlugin()`` method
255
+to add the plugin.
258 256
 
259 257
 First create an associative array of replacements based on the email addresses
260 258
 you'll be sending the message to.
@@ -277,8 +275,8 @@ you'll be sending the message to.
277 275
           );
278 276
         }
279 277
 
280
-Now create an instance of the Decorator plugin using this array of
281
-replacements and then register it with the Mailer. Do this only once!
278
+Now create an instance of the Decorator plugin using this array of replacements 
279
+and then register it with the Mailer. Do this only once!
282 280
 
283 281
 .. code-block:: php
284 282
 
@@ -304,9 +302,9 @@ line) with your placeholders.
304 302
     }
305 303
 
306 304
 When you send this message to each of your recipients listed in your
307
-``$replacements`` array they will receive a message customized
308
-for just themselves. For example, the message used above when received may
309
-appear like this to one user:
305
+``$replacements`` array they will receive a message customized for just 
306
+themselves. For example, the message used above when received may appear like 
307
+this to one user:
310 308
 
311 309
 .. code-block:: text
312 310
 
@@ -339,9 +337,8 @@ that performs replacement lookups on-the-fly you may provide your own
339 337
 implementation.
340 338
 
341 339
 Providing your own replacements lookup implementation for the Decorator is
342
-simply a matter of passing an instance of
343
-``Swift_Plugins_Decorator_Replacements`` to the decorator
344
-plugin's constructor, rather than passing in an array.
340
+simply a matter of passing an instance of ``Swift_Plugins_Decorator_Replacements`` to the decorator plugin's constructor,
341
+rather than passing in an array.
345 342
 
346 343
 The Replacements interface is very simple to implement since it has just one
347 344
 method: ``getReplacementsFor($address)``.
@@ -378,9 +375,8 @@ plugin's constructor instead of passing an array.
378 375
 
379 376
     $mailer->registerPlugin($decorator);
380 377
 
381
-For each message sent, the plugin will call your class'
382
-``getReplacementsFor()`` method to find the array of replacements
383
-it needs.
378
+For each message sent, the plugin will call your class' ``getReplacementsFor()``
379
+method to find the array of replacements it needs.
384 380
 
385 381
 .. note::
386 382
 

+ 84 - 94
vendor/swiftmailer/doc/sending.rst Voir le fichier

@@ -10,8 +10,8 @@ create the Mailer, then you use the Mailer to send the message.
10 10
 To send a Message:
11 11
 
12 12
 * Create a Transport from one of the provided Transports --
13
-  ``Swift_SmtpTransport``, ``Swift_SendmailTransport``,
14
-  ``Swift_MailTransport`` or one of the aggregate Transports.
13
+  ``Swift_SmtpTransport``, ``Swift_SendmailTransport``, ``Swift_MailTransport`` 
14
+  or one of the aggregate Transports.
15 15
 
16 16
 * Create an instance of the ``Swift_Mailer`` class, using the Transport as
17 17
   it's constructor parameter.
@@ -28,19 +28,18 @@ To send a Message:
28 28
     following PHP script: ``<?php echo function_exists('proc_open') ? "Yep,
29 29
     that will work" : "Sorry, that won't work"; ``
30 30
 
31
-When using ``send()`` the message will be sent just like it would
32
-be sent if you used your mail client. An integer is returned which includes
33
-the number of successful recipients. If none of the recipients could be sent
34
-to then zero will be returned, which equates to a boolean
35
-``false``. If you set two ``To:`` recipients and
36
-three ``Bcc:`` recipients in the message and all of the
31
+When using ``send()`` the message will be sent just like it would be sent if you
32
+used your mail client. An integer is returned which includes the number of
33
+successful recipients. If none of the recipients could be sent to then zero will
34
+be returned, which equates to a boolean ``false``. If you set two ``To:``
35
+recipients and three ``Bcc:`` recipients in the message and all of the
37 36
 recipients are delivered to successfully then the value 5 will be returned.
38 37
 
39 38
 .. code-block:: php
40 39
 
41 40
     require_once 'lib/swift_required.php';
42 41
 
43
-    //Create the Transport
42
+    // Create the Transport
44 43
     $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
45 44
       ->setUsername('your username')
46 45
       ->setPassword('your password')
@@ -49,24 +48,24 @@ recipients are delivered to successfully then the value 5 will be returned.
49 48
     /*
50 49
     You could alternatively use a different transport such as Sendmail or Mail:
51 50
 
52
-    //Sendmail
51
+    // Sendmail
53 52
     $transport = Swift_SendmailTransport::newInstance('/usr/sbin/sendmail -bs');
54 53
 
55
-    //Mail
54
+    // Mail
56 55
     $transport = Swift_MailTransport::newInstance();
57 56
     */
58 57
 
59
-    //Create the Mailer using your created Transport
58
+    // Create the Mailer using your created Transport
60 59
     $mailer = Swift_Mailer::newInstance($transport);
61 60
 
62
-    //Create a message
61
+    // Create a message
63 62
     $message = Swift_Message::newInstance('Wonderful Subject')
64 63
       ->setFrom(array('john@doe.com' => 'John Doe'))
65 64
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
66 65
       ->setBody('Here is the message itself')
67 66
       ;
68 67
   
69
-    //Send the message
68
+    // Send the message
70 69
     $result = $mailer->send($message);
71 70
 
72 71
 Transport Types
@@ -83,8 +82,8 @@ use for your environment.
83 82
 The SMTP Transport
84 83
 ..................
85 84
 
86
-The SMTP Transport sends messages over the (standardized) Simple Message Transfer
87
-Protocol.  It can deal with encryption and authentication.
85
+The SMTP Transport sends messages over the (standardized) Simple Message
86
+Transfer Protocol.  It can deal with encryption and authentication.
88 87
 
89 88
 The SMTP Transport, ``Swift_SmtpTransport`` is without doubt the most commonly
90 89
 used Transport because it will work on 99% of web servers (I just made that
@@ -109,10 +108,8 @@ easily store the SMTP server address and port number in a configuration file
109 108
 within your application and adjust the settings accordingly if the code is
110 109
 moved or if the SMTP server is changed.
111 110
 
112
-Some SMTP servers -- Google for example -- use encryption for
113
-security reasons. Swift Mailer supports using both SSL and TLS encryption
114
-settings.
115
-
111
+Some SMTP servers -- Google for example -- use encryption for security reasons. 
112
+Swift Mailer supports using both SSL and TLS encryption settings.
116 113
 
117 114
 Using the SMTP Transport
118 115
 ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -139,10 +136,10 @@ A connection to the SMTP server will be established upon the first call to
139 136
 
140 137
     require_once 'lib/swift_required.php';
141 138
 
142
-    //Create the Transport
139
+    // Create the Transport
143 140
     $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25);
144 141
 
145
-    //Create the Mailer using your created Transport
142
+    // Create the Mailer using your created Transport
146 143
     $mailer = Swift_Mailer::newInstance($transport);
147 144
 
148 145
     /*
@@ -173,7 +170,7 @@ settings.
173 170
 
174 171
 .. note::
175 172
 
176
-    For SSL or TLS encryption to work your PHP installation must have
173
+    For SSL or TLS encryption to work your PHP installation must have 
177 174
     appropriate OpenSSL transports wrappers. You can check if "tls" and/or
178 175
     "ssl" are present in your PHP installation by using the PHP function
179 176
     ``stream_get_transports()``
@@ -182,10 +179,10 @@ settings.
182 179
 
183 180
         require_once 'lib/swift_required.php';
184 181
 
185
-        //Create the Transport
182
+        // Create the Transport
186 183
         $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 587, 'ssl');
187 184
 
188
-        //Create the Mailer using your created Transport
185
+        // Create the Mailer using your created Transport
189 186
         $mailer = Swift_Mailer::newInstance($transport);
190 187
 
191 188
         /*
@@ -202,7 +199,7 @@ SMTP with a Username and Password
202 199
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203 200
 
204 201
 Some servers require authentication. You can provide a username and password
205
-with ``setUsername()`` and ``setPassword()``.
202
+with ``setUsername()`` and ``setPassword()`` methods.
206 203
 
207 204
 To use a username and password with the SMTP Transport:
208 205
 
@@ -213,8 +210,8 @@ To use a username and password with the SMTP Transport:
213 210
 Your username and password will be used to authenticate upon first connect
214 211
 when ``send()`` are first used on the Mailer.
215 212
 
216
-If authentication fails, an Exception of type
217
-``Swift_TransportException`` will be thrown.
213
+If authentication fails, an Exception of type ``Swift_TransportException`` will 
214
+be thrown.
218 215
 
219 216
 .. note::
220 217
 
@@ -226,13 +223,13 @@ If authentication fails, an Exception of type
226 223
 
227 224
         require_once 'lib/swift_required.php';
228 225
 
229
-        //Create the Transport the call setUsername() and setPassword()
226
+        // Create the Transport the call setUsername() and setPassword()
230 227
         $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
231 228
           ->setUsername('username')
232 229
           ->setPassword('password')
233 230
           ;
234 231
 
235
-        //Create the Mailer using your created Transport
232
+        // Create the Mailer using your created Transport
236 233
         $mailer = Swift_Mailer::newInstance($transport);
237 234
 
238 235
 The Sendmail Transport
@@ -241,18 +238,17 @@ The Sendmail Transport
241 238
 The Sendmail Transport sends messages by communicating with a locally
242 239
 installed MTA -- such as ``sendmail``.
243 240
 
244
-The Sendmail Transport, ``Swift_SendmailTransport`` does not
245
-directly connect to any remote services. It is designed for Linux servers that
246
-have ``sendmail`` installed. The Transport starts a local
247
-``sendmail`` process and sends messages to it. Usually the
248
-``sendmail`` process will respond quickly as it spools your
241
+The Sendmail Transport, ``Swift_SendmailTransport`` does not directly connect to
242
+any remote services. It is designed for Linux servers that have ``sendmail``
243
+installed. The Transport starts a local ``sendmail`` process and sends messages
244
+to it. Usually the ``sendmail`` process will respond quickly as it spools your
249 245
 messages to disk before sending them.
250 246
 
251 247
 The Transport is named the Sendmail Transport for historical reasons
252
-(``sendmail`` was the "standard" UNIX tool for sending e-mail
253
-for years). It will send messages using other transfer agents such as Exim or
254
-Postfix despite its name, provided they have the relevant sendmail wrappers so
255
-that they can be started with the correct command-line flags.
248
+(``sendmail`` was the "standard" UNIX tool for sending e-mail for years). It
249
+will send messages using other transfer agents such as Exim or Postfix despite
250
+its name, provided they have the relevant sendmail wrappers so that they can be
251
+started with the correct command-line flags.
256 252
 
257 253
 It's a common misconception that because the Sendmail Transport returns a
258 254
 result very quickly it must therefore deliver messages to recipients quickly
@@ -263,10 +259,10 @@ been quickly spooled to disk.
263 259
 
264 260
 The Sendmail Transport has the potential to be just as smart of the SMTP
265 261
 Transport when it comes to notifying Swift Mailer about which recipients were
266
-rejected, but in reality the majority of locally installed
267
-``sendmail`` instances are not configured well enough to
268
-provide any useful feedback. As such Swift Mailer may report successful
269
-deliveries where they did in fact fail before they even left your server.
262
+rejected, but in reality the majority of locally installed ``sendmail``
263
+instances are not configured well enough to provide any useful feedback. As such
264
+Swift Mailer may report successful deliveries where they did in fact fail before
265
+they even left your server.
270 266
 
271 267
 You can run the Sendmail Transport in two different modes specified by command
272 268
 line flags:
@@ -277,33 +273,29 @@ line flags:
277 273
 * "``-t``" runs in piped mode with no feedback, but theoretically faster,
278 274
   though not advised
279 275
 
280
-You can think of the Sendmail Transport as a sort of asynchronous SMTP
281
-Transport -- though if you have problems with delivery failures you
282
-should try using the SMTP Transport instead. Swift Mailer isn't doing the work
283
-here, it's simply passing the work to somebody else (i.e.
284
-``sendmail``).
276
+You can think of the Sendmail Transport as a sort of asynchronous SMTP Transport
277
+-- though if you have problems with delivery failures you should try using the
278
+SMTP Transport instead. Swift Mailer isn't doing the work here, it's simply
279
+passing the work to somebody else (i.e. ``sendmail``).
285 280
 
286 281
 Using the Sendmail Transport
287 282
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
288 283
 
289 284
 To use the Sendmail Transport you simply need to call
290
-``Swift_SendmailTransport::newInstance()`` with the command as a
291
-parameter.
285
+``Swift_SendmailTransport::newInstance()`` with the command as a parameter.
292 286
 
293
-To use the Sendmail Transport you need to know where
294
-``sendmail`` or another MTA exists on the server. Swift Mailer
295
-uses a default value of ``/usr/sbin/sendmail``, which should
296
-work on most systems.
287
+To use the Sendmail Transport you need to know where ``sendmail`` or another MTA
288
+exists on the server. Swift Mailer uses a default value of
289
+``/usr/sbin/sendmail``, which should work on most systems.
297 290
 
298 291
 You specify the entire command as a parameter (i.e. including the command line
299
-flags). Swift Mailer supports operational modes of "``-bs``"
300
-(default) and "``-t``".
292
+flags). Swift Mailer supports operational modes of "``-bs``" (default) and
293
+"``-t``".
301 294
 
302 295
 .. note::
303 296
 
304
-    If you run sendmail in "``-t``" mode you will get no feedback as to
305
-    whether or not sending has succeeded. Use "``-bs``" unless you have a
306
-    reason not to.
297
+    If you run sendmail in "``-t``" mode you will get no feedback as to whether 
298
+    or not sending has succeeded. Use "``-bs``" unless you have a reason not to.
307 299
 
308 300
 To use the Sendmail Transport:
309 301
 
@@ -321,10 +313,10 @@ process cannot be started successfully an Exception of type
321 313
 
322 314
     require_once 'lib/swift_required.php';
323 315
 
324
-    //Create the Transport
316
+    // Create the Transport
325 317
     $transport = Swift_SendmailTransport::newInstance('/usr/sbin/exim -bs');
326 318
 
327
-    //Create the Mailer using your created Transport
319
+    // Create the Mailer using your created Transport
328 320
     $mailer = Swift_Mailer::newInstance($transport);
329 321
 
330 322
 The Mail Transport
@@ -333,21 +325,20 @@ The Mail Transport
333 325
 The Mail Transport sends messages by delegating to PHP's internal
334 326
 ``mail()`` function.
335 327
 
336
-In my experience -- and others' -- the ``mail()``
337
-function is not particularly predictable, or helpful.
328
+In my experience -- and others' -- the ``mail()`` function is not particularly
329
+predictable, or helpful.
338 330
 
339
-Quite notably, the ``mail()`` function behaves entirely
340
-differently between Linux and Windows servers. On linux it uses
341
-``sendmail``, but on Windows it uses SMTP.
331
+Quite notably, the ``mail()`` function behaves entirely differently between
332
+Linux and Windows servers. On linux it uses ``sendmail``, but on Windows it uses
333
+SMTP.
342 334
 
343
-In order for the ``mail()`` function to even work at all
344
-``php.ini`` needs to be configured correctly, specifying the
345
-location of sendmail or of an SMTP server.
335
+In order for the ``mail()`` function to even work at all ``php.ini`` needs to be
336
+configured correctly, specifying the location of sendmail or of an SMTP server.
346 337
 
347
-The problem with ``mail()`` is that it "tries" to simplify things
348
-to the point that it actually makes things more complex due to poor interface
349
-design. The developers of Swift Mailer have gone to a lot of effort to make
350
-the Mail Transport work with a reasonable degree of consistency.
338
+The problem with ``mail()`` is that it "tries" to simplify things to the point 
339
+that it actually makes things more complex due to poor interface design. The 
340
+developers of Swift Mailer have gone to a lot of effort to make the Mail 
341
+Transport work with a reasonable degree of consistency.
351 342
 
352 343
 Serious drawbacks when using this Transport are:
353 344
 
@@ -363,8 +354,8 @@ Using the Mail Transport
363 354
 ^^^^^^^^^^^^^^^^^^^^^^^^
364 355
 
365 356
 To use the Mail Transport you simply need to call
366
-``Swift_MailTransport::newInstance()``. It's unlikely you'll need
367
-to configure the Transport.
357
+``Swift_MailTransport::newInstance()``. It's unlikely you'll need to configure
358
+the Transport.
368 359
 
369 360
 To use the Mail Transport:
370 361
 
@@ -386,10 +377,10 @@ Messages will be sent using the ``mail()`` function.
386 377
 
387 378
         require_once 'lib/swift_required.php';
388 379
 
389
-        //Create the Transport
380
+        // Create the Transport
390 381
         $transport = Swift_MailTransport::newInstance();
391 382
 
392
-        //Create the Mailer using your created Transport
383
+        // Create the Mailer using your created Transport
393 384
         $mailer = Swift_Mailer::newInstance($transport);
394 385
 
395 386
 Available Methods for Sending Messages
@@ -409,15 +400,15 @@ an integer indicating the number of accepted recipients.
409 400
 
410 401
 .. note::
411 402
 
412
-    It's possible to find out which recipients were rejected -- we'll
413
-    cover that later in this chapter.
403
+    It's possible to find out which recipients were rejected -- we'll cover that
404
+    later in this chapter.
414 405
 
415 406
 Using the ``send()`` Method
416 407
 ...........................
417 408
 
418
-The ``send()`` method of the ``Swift_Mailer`` class
419
-sends a message using exactly the same logic as your Desktop mail client would
420
-use. Just pass it a Message and get a result.
409
+The ``send()`` method of the ``Swift_Mailer`` class sends a message using
410
+exactly the same logic as your Desktop mail client would use. Just pass it a
411
+Message and get a result.
421 412
 
422 413
 To send a Message with ``send()``:
423 414
 
@@ -436,28 +427,27 @@ The message will be sent just like it would be sent if you used your mail
436 427
 client. An integer is returned which includes the number of successful
437 428
 recipients. If none of the recipients could be sent to then zero will be
438 429
 returned, which equates to a boolean ``false``. If you set two
439
-``To:`` recipients and three ``Bcc:`` recipients in
440
-the message and all of the recipients are delivered to successfully then the
441
-value 5 will be returned.
430
+``To:`` recipients and three ``Bcc:`` recipients in the message and all of the
431
+recipients are delivered to successfully then the value 5 will be returned.
442 432
 
443 433
 .. code-block:: php
444 434
 
445 435
     require_once 'lib/swift_required.php';
446 436
 
447
-    //Create the Transport
437
+    // Create the Transport
448 438
     $transport = Swift_SmtpTransport::newInstance('localhost', 25);
449 439
 
450
-    //Create the Mailer using your created Transport
440
+    // Create the Mailer using your created Transport
451 441
     $mailer = Swift_Mailer::newInstance($transport);
452 442
 
453
-    //Create a message
443
+    // Create a message
454 444
     $message = Swift_Message::newInstance('Wonderful Subject')
455 445
       ->setFrom(array('john@doe.com' => 'John Doe'))
456 446
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
457 447
       ->setBody('Here is the message itself')
458 448
       ;
459 449
   
460
-    //Send the message
450
+    // Send the message
461 451
     $numSent = $mailer->send($message);
462 452
 
463 453
     printf("Sent %d messages\n", $numSent);
@@ -507,19 +497,19 @@ email address on the ``To:`` field.
507 497
 
508 498
         require_once 'lib/swift_required.php';
509 499
 
510
-        //Create the Transport
500
+        // Create the Transport
511 501
         $transport = Swift_SmtpTransport::newInstance('localhost', 25);
512 502
 
513
-        //Create the Mailer using your created Transport
503
+        // Create the Mailer using your created Transport
514 504
         $mailer = Swift_Mailer::newInstance($transport);
515 505
 
516
-        //Create a message
506
+        // Create a message
517 507
         $message = Swift_Message::newInstance('Wonderful Subject')
518 508
           ->setFrom(array('john@doe.com' => 'John Doe'))
519 509
           ->setBody('Here is the message itself')
520 510
           ;
521 511
 
522
-        //Send the message
512
+        // Send the message
523 513
         $failedRecipients = array();
524 514
         $numSent = 0;
525 515
         $to = array('receiver@domain.org', 'other@domain.org' => 'A name');
@@ -586,7 +576,7 @@ added to the array provided by-reference.
586 576
           ->setBody( ... )
587 577
           ;
588 578
 
589
-        //Pass a variable name to the send() method
579
+        // Pass a variable name to the send() method
590 580
         if (!$mailer->send($message, $failures))
591 581
         {
592 582
           echo "Failures:";

+ 10 - 8
vendor/swiftmailer/lib/classes/Swift/FileSpool.php Voir le fichier

@@ -93,15 +93,17 @@ class Swift_FileSpool extends Swift_ConfigurableSpool
93 93
       /* We try an exclusive creation of the file
94 94
        * This is an atomic operation, it avoid locking mechanism
95 95
        */
96
-      $fp=fopen($fileName.'.message', 'x');
97
-      if ($fp) 
96
+      $fp = @fopen($fileName.'.message', 'x');
97
+      if (false !== $fp)
98 98
       {
99
-        fwrite($fp, $ser);
100
-        fclose($fp);
101
-        
102
-        return;
103
-      } 
104
-      else 
99
+        if (false === fwrite($fp, $ser))
100
+        {
101
+          return false;
102
+        }
103
+
104
+        return fclose($fp);
105
+      }
106
+      else
105 107
       {
106 108
         /* The file allready exists, we try a longer fileName
107 109
          */

+ 8 - 0
vendor/swiftmailer/lib/classes/Swift/MemorySpool.php Voir le fichier

@@ -44,10 +44,13 @@ class Swift_MemorySpool implements Swift_Spool
44 44
    * Stores a message in the queue.
45 45
    *
46 46
    * @param Swift_Mime_Message $message The message to store
47
+   *
48
+   * @return boolean Whether the operation has succeeded
47 49
    */
48 50
   public function queueMessage(Swift_Mime_Message $message)
49 51
   {
50 52
     $this->messages[] = $message;
53
+    return true;
51 54
   }
52 55
 
53 56
   /**
@@ -60,6 +63,11 @@ class Swift_MemorySpool implements Swift_Spool
60 63
    */
61 64
   public function flushQueue(Swift_Transport $transport, &$failedRecipients = null)
62 65
   {
66
+    if (!$this->messages)
67
+    {
68
+      return 0;
69
+    }
70
+
63 71
     if (!$transport->isStarted())
64 72
     {
65 73
       $transport->start();

+ 2 - 0
vendor/swiftmailer/lib/classes/Swift/Spool.php Voir le fichier

@@ -35,6 +35,8 @@ interface Swift_Spool
35 35
   /**
36 36
    * Queues a message.
37 37
    * @param Swift_Mime_Message $message The message to store
38
+   *
39
+   * @return boolean Whether the operation has succeeded
38 40
    */
39 41
   public function queueMessage(Swift_Mime_Message $message);
40 42
 

+ 2 - 2
vendor/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php Voir le fichier

@@ -46,11 +46,11 @@ class Swift_Transport_SimpleMailInvoker implements Swift_Transport_MailInvoker
46 46
   {
47 47
     if (!ini_get('safe_mode'))
48 48
     {
49
-      return mail($to, $subject, $body, $headers, $extraParams);
49
+      return @mail($to, $subject, $body, $headers, $extraParams);
50 50
     }
51 51
     else
52 52
     {
53
-      return mail($to, $subject, $body, $headers);      
53
+      return @mail($to, $subject, $body, $headers);      
54 54
     }
55 55
   }
56 56
   

+ 2 - 1
vendor/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php Voir le fichier

@@ -260,7 +260,8 @@ class Swift_Transport_StreamBuffer
260 260
     {
261 261
     	$options['socket']['bindto']=$this->_params['sourceIp'].':0';
262 262
     }
263
-    if (!$this->_stream = stream_socket_client($host.':'.$this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, stream_context_create($options)))
263
+    $this->_stream = @stream_socket_client($host.':'.$this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, stream_context_create($options));
264
+    if (false === $this->_stream)
264 265
     {
265 266
       throw new Swift_TransportException(
266 267
         'Connection could not be established with host ' . $this->_params['host'] .

+ 1 - 0
vendor/symfony/.travis.yml Voir le fichier

@@ -1,6 +1,7 @@
1 1
 language: php
2 2
 
3 3
 php:
4
+  - 5.3.2
4 5
   - 5.3
5 6
   - 5.4
6 7
 

+ 36 - 0
vendor/symfony/CHANGELOG-2.0.md Voir le fichier

@@ -7,6 +7,42 @@ in 2.0 minor versions.
7 7
 To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
8 8
 To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v2.0.0...v2.0.1
9 9
 
10
+* 2.0.11 (2012-02-24)
11
+
12
+ * 3e64d36: [Serializer] Fix XML decoding attack vector through external entities
13
+ * 66d0d3d: [FrameworkBundle] Fix a bug in the RedirectableUrlMatcher
14
+ * 24a3cd3: Finder - allow sorting when searching in multiple directories
15
+ * 6e75fd1: Resolves issue with spl_autoload_register creating new copies of the container and passing that into the closure.
16
+ * d02ca25: [MonologBundle] Fixed a bug when adding a processor on a service handler
17
+ * 2434552: [Translation] Fixed fallback location if location is longer than three characters (possibly by mistake).
18
+ * ec7fb0b: [Routing] added a proper exception when a route pattern references the same variable more than once (closes #3344)
19
+ * beb4fc0: [WIP][Locale] StubIntlDateFormatter::parse was throwing exception instead of returning Boolean false like intl implementation
20
+
21
+* 2.0.10 (2012-02-06)
22
+
23
+ * 8e13095: Fixed the unescaping of parameters to handle arrays
24
+ * c3f0ec7: Make DoctrineBundle fowards compatible with Doctrine 2.2
25
+ * e814d27: [FormType] Fixed broken MoneyType regexp for JPY
26
+ * 7f96c8a: [HttpKernel] Prevent php script execution in cached ESI pages using HttpCache
27
+ * 959614b: Use reflection to determaine the correct path for component validation.xml file
28
+ * cacc880: [Bugfix][Locale] Fixed incomplete Locale data loading
29
+ * d67d419: [HttpFoundation] added missing trustProxy condition
30
+ * efce640: [Yaml][Parser] throw an exception if not readable
31
+ * aa58330: [Form] fixed flawed condition
32
+ * 253eeba: [BugFix][Validator] Fix for PHP incosistent behaviour of ArrayAccess
33
+ * 0507840: Prevent parameters from overwriting the template filename.
34
+ * 9bc41d0: [HttpFoundation] Fixed #3053
35
+ * 9441c46: [DependencyInjection] PhpDumper, fixes #2730
36
+
37
+* 2.0.9 (2012-01-06)
38
+
39
+ * 0492290: [Console] added a missing method (closes #3043)
40
+ * e09b523: updated Twig to 1.5.1 to fix a regression
41
+ * 261325d: Cast $query['params'] to array to ensure it is a valid argument for the foreach.
42
+ * 85ca8e3: ParameterBag no longer resolves parameters that have spaces.
43
+ * aacb2de: use the forward compat version in the Filesystem service
44
+ * 41950a6: [WebProfilerBundle] add margin-bottom to caption
45
+
10 46
 * 2.0.8 (2011-12-26)
11 47
 
12 48
  * adea589: [Twig] made code compatible with Twig 1.5

+ 121 - 95
vendor/symfony/CONTRIBUTORS.md Voir le fichier

@@ -7,104 +7,78 @@ Symfony2 is the result of the work of many people who made the code better
7 7
  - Fabien Potencier (fabpot)
8 8
  - Bernhard Schussek (bschussek)
9 9
  - Johannes (schmittjoh)
10
- - Jordi Boggiano (Seldaek)
11 10
  - Kris Wallsmith (kriswallsmith)
11
+ - Victor Berchet (vicb)
12
+ - Jordi Boggiano (Seldaek)
12 13
  - Christophe Coevoet (stof)
14
+ - Ryan Weaver (weaverryan)
15
+ - Pascal Borreli (pborreli)
13 16
  - Lukas Kahwe Smith (lsmith77)
14
- - Victor Berchet (vicb)
15
- - Alexandre Salomé (alexandresalome)
16 17
  - Benjamin Eberlei (beberlei)
18
+ - Igor Wiedler (igorw)
17 19
  - Joseph Bielawski (stloyd)
18
- - stealth35 (stealth35)
19
- - Ryan Weaver (weaverryan)
20
- - Pascal Borreli (pborreli)
21
- - Eric Clemmons (ericclemmons)
22 20
  - Jeremy Mikola (jmikola)
23
- - Henrik Westphal (snc)
24
- - Igor Wiedler (igorw)
25
- - Drak (drak)
26
- - Tigran Azatyan (tigranazatyan)
27
- - Jordan Alliot (jalliot)
28 21
  - Hugo Hamon (hhamon)
29
- - Miha Vrhovnik (mvrhov)
30
- - Arnout Boks (aboks)
31 22
  - Jonathan H. Wage (jwage)
32
- - Benjamin Dulau (benjamindulau)
33
- - Martin Hasoň (hason)
34 23
  - Thibault Duplessis (ornicar)
35
- - Helmer Aaviksoo (helmer)
36
- - Excel Web Zone (excelwebzone)
37
- - Jacob Dreesen (jdreesen)
24
+ - Alexandre Salomé (alexandresalome)
38 25
  - Bulat Shakirzyanov (avalanche123)
39 26
  - Eriksen Costa (eriksencosta)
40 27
  - Francis Besset (francisbesset)
41
- - Richard Shank (IamPersistent)
42
- - Wotre (Wotre)
43
- - dbu
28
+ - stealth35 (stealth35)
29
+ - Miha Vrhovnik (mvrhov)
44 30
  - Henrik Bjørnskov (henrikbjorn)
45
- - yethee (yethee)
46
- - Lenar Lõhmus (lenar)
47
- - Richard Miller (richardmiller)
48
- - Dariusz Górecki (canni)
31
+ - Martin Hasoň (hason)
32
+ - Eric Clemmons (ericclemmons)
49 33
  - Konstantin Kudryashov (everzet)
50
- - Brikou CARRE (brikou)
51
- - Daniel Holmes (danielholmes)
52
- - William DURAND (willdurand)
34
+ - Dariusz Górecki (canni)
35
+ - Arnout Boks (aboks)
53 36
  - Brandon Turner (blt04)
54
- - brki (brki)
55 37
  - Hidenori Goto (hidenorigoto)
38
+ - Henrik Westphal (snc)
56 39
  - John Wards (johnwards)
40
+ - Drak (drak)
41
+ - yethee (yethee)
42
+ - Lenar Lõhmus (lenar)
43
+ - Brikou CARRE (brikou)
44
+ - Daniel Holmes (danielholmes)
57 45
  - Antoine Hérault (Herzult)
58
- - Danny Berger (dpb587)
59
- - Alif Rachmawadi (alifity)
60 46
  - Fabien Pennequin (FabienPennequin)
61
- - Tobias Schultze (Tobion)
62 47
  - Marc Weistroff (marcw)
63
- - Julien Brochet (aerialls)
64
- - Michel Salib (michelsalib)
65
- - Marcin Chylek (SongoQ)
66
- - Christian Raue (craue)
67
- - superjavason (superjavason)
68
- - Thomas (rande)
69
- - Joseph Rouff (rouffj)
48
+ - Jacob Dreesen (jdreesen)
49
+ - Richard Shank (IamPersistent)
50
+ - William DURAND (willdurand)
51
+ - Jordan Alliot (jalliot)
52
+ - Excel Web Zone (excelwebzone)
70 53
  - Katsuhiro OGAWA (fivestar)
54
+ - Tobias Schultze (Tobion)
71 55
  - blue-eyes (blue-eyes)
72
- - Daniel Gomes (danielcsgomes)
73
- - Miquel Rodríguez Telep (mrtorrent)
74
- - flevour (flevour)
75
- - Tim Nagel (merk)
76 56
  - Robert Schönthal (digitalkaoz)
57
+ - Tim Nagel (merk)
77 58
  - Michel Weimerskirch (mweimerskirch)
78
- - Michele Orselli (micheleorselli)
59
+ - Tigran Azatyan (tigranazatyan)
60
+ - Christian Raue (craue)
61
+ - Helmer Aaviksoo (helmer)
79 62
  - Jakub Zalas (jakzal)
63
+ - Javier Eguiluz (javiereguiluz)
80 64
  - Matthieu Vachon (maoueh)
81 65
  - Amal Raghav (kertz)
82 66
  - Artur Kotyrba (udat)
83
- - Bernd Matzner (bmatzner)
67
+ - Kevin Bond (kbond)
68
+ - umpirsky (umpirsky)
84 69
  - Clément JOBEILI (dator)
85
- - Tom Klingenberg (ktomk)
86
- - Thomas Bibb (thomasbibb)
87
- - Marek Kalnik (marekkalnik)
88
- - Oscar Cubo Medina (ocubom)
89
- - xaav
90
- - Pierre Minnieur (pminnieur)
91
- - Neil Katin
70
+ - Bart van den Burg (Burgov)
71
+ - Benjamin Dulau (benjamindulau)
92 72
  - Noel GUILBERT (noelg)
93
- - Klein Florian (docteurklein)
73
+ - Andrej Hudec (pulzarraider)
94 74
  - Martin Schuhfuss (usefulthink)
95
- - stloyd
75
+ - Thomas (rande)
96 76
  - Dennis Benkert (denderello)
97
- - Bart van den Burg (Burgov)
98 77
  - Matthieu Bontemps (mbontemps)
99
- - Kirill chEbba Chebunin (chEbba)
100
- - John Carr (Jc2k)
101
- - jdewit (jdewit)
102
- - Teo (teo-sk)
103 78
  - Dustin Whittle (dustinwhittle)
104 79
  - Jean-François PHILIPPE (jfphilippe)
105 80
  - Justin Hileman (bobthecow)
106 81
  - Sven Paulus (subsven)
107
- - umpirsky (umpirsky)
108 82
  - Xavier Perez (DuoSRX)
109 83
  - Brouznouf (Brouznouf)
110 84
  - Pablo Godel (pgodel)
@@ -113,134 +87,156 @@ Symfony2 is the result of the work of many people who made the code better
113 87
  - Francois Zaninotto (fzaninotto)
114 88
  - Xavier Montaña (xmontana)
115 89
  - Arjen Brouwer (arjenjb)
90
+ - Alif Rachmawadi (subosito)
116 91
  - Boussekeyt Jules (gordonslondon)
117
- - Thomas Adam (tecbot)
118 92
  - Jan Sorgalla (jsor)
119
- - Douglas Greenshields (shieldo)
120 93
  - Lee McDermott (lmcd)
121
- - Shein Alexey (conf)
122
- - Manuel de Ruiter (ManuelAC)
94
+ - Richard Miller (richardmiller)
123 95
  - Jeroen Hoek (jdhoek)
124
- - Robert Gruendler (pulse00)
125 96
  - geoffrey
126 97
  - Matthew Lewinski (lewinski)
98
+ - Wotre (Wotre)
99
+ - Pierre Minnieur (pminnieur)
100
+ - Daniel Gomes (danielcsgomes)
101
+ - Danny Berger (dpb587)
127 102
  - dlsniper (dlsniper)
128 103
  - Jérémie Augustin (jaugustin)
129
- - ondrowan (ondrowan)
130
- - Costin Bereveanu (schniper)
104
+ - Sebastian Hörl (blogsh)
105
+ - Joseph Rouff (rouffj)
106
+ - Manuel Kiessling (ManuelKiessling)
107
+ - dbu
131 108
  - asm89 (asm89)
132
- - Andrej Hudec (pulzarraider)
109
+ - Julien Brochet (aerialls)
133 110
  - Aurelijus Valeiša (aurelijus)
111
+ - Gustavo Piltcher
134 112
  - Ray (rrehbeindoi)
113
+ - Gordon Franke (gimler)
135 114
  - Adrian Rudnik (kreischweide)
136
- - Dustin Dobervich (dustin10)
115
+ - Gábor Egyed (1ed)
137 116
  - Andréia Bohner (andreia)
138 117
  - Yuen-Chi Lian (yclian)
139 118
  - Greg Thornton (xdissent)
140
- - andrewtch (andrewtch)
119
+ - Lars Strojny (lstrojny)
120
+ - Costin Bereveanu (schniper)
121
+ - Douglas Greenshields (shieldo)
141 122
  - Konstantin Leboev (realmfoo)
142
- - Grégoire Paris (greg0ire)
143 123
  - Donald Tyler (Chekote)
144 124
  - Kai
145 125
  - Gyula Sallai (thesalla)
146 126
  - Sergey Linnik (Partugal)
147 127
  - Laszlo Korte (laszlokorte)
148
- - Jonathan Ingram (jonathaningram)
128
+ - Toni Uebernickel (havvg)
149 129
  - Hubert LECORCHE (hlecorche)
150 130
  - Michael Ridgway (mridgway)
151 131
  - Stepan Tanasiychuk (stfalcon)
152 132
  - Bertrand Zuchuat (Garfield-fr)
153
- - Adam Monsen (meonkeys)
154
- - Xavier HAUSHERR (xkobal)
133
+ - brki (brki)
134
+ - Michel Salib (michelsalib)
155 135
  - Jan Schumann (janschumann)
156
- - Vadim Tyukov (vatson)
136
+ - Michele Orselli (micheleorselli)
157 137
  - Asier Illarramendi (doup)
158
- - Gábor Egyed (1ed)
159 138
  - Shigenobu Nishikawa (shishi)
139
+ - Sebastian Bergmann (sebastianbergmann)
160 140
  - Marcin Sikoń (marphi)
141
+ - Miquel Rodríguez Telep (mrtorrent)
142
+ - Peter Kokot (maastermedia)
161 143
  - Laurent Bachelier (laurentb)
162 144
  - Fabian Lange (CodingFabian)
163 145
  - Yoshio HANAWA
164 146
  - Pablo Díez (pablodip)
147
+ - ondrowan (ondrowan)
165 148
  - Benoit Tirmarche (mcbennn)
166 149
  - Grégoire Passault
167 150
  - De Cock Xavier (xdecock)
168 151
  - Cristian González Sánchez (cristiangsp)
152
+ - Manuel Reinhard (sprain)
153
+ - Thomas Adam (tecbot)
169 154
  - Nils Adermann (naderman)
170 155
  - Tobias Naumann (tna)
156
+ - Shein Alexey (conf)
157
+ - Jonathan Ingram (jonathaningram)
171 158
  - Steven Surowiec (steves)
159
+ - Marcin Chylek (SongoQ)
172 160
  - arnaud-lb (arnaud-lb)
173 161
  - Ivan Rey (ivanrey)
162
+ - Ryan Rogers (timewasted)
174 163
  - Ned Schwartz (theinterned)
175
- - Gordon Franke (gimler)
176 164
  - Aurélien Fredouelle (AurelC2G)
177
- - David Soria Parra (dsp)
165
+ - flevour (flevour)
166
+ - Oscar Cubo Medina (ocubom)
178 167
  - Geoffrey Tran (geoffreytran)
179 168
  - Christian Schaefer (caefer)
180 169
  - Elliot Anderson (elliot)
181
- - Kevin Bond (kbond)
170
+ - Olivier Dolbeau (odolbeau)
182 171
  - José Nahuel Cuesta Luengo (ncuesta)
183
- - Sebastian Marek (proofek)
172
+ - Dustin Dobervich (dustin10)
184 173
  - erheme318 (erheme318)
185 174
  - Michael Holm (hollodk)
186 175
  - Rostyslav Kinash
187 176
  - yktd26 (yktd26)
188
- - Javier Eguiluz (javiereguiluz)
189 177
  - umpirski (umpirski)
190
- - Sebastian Bergmann (sebastianbergmann)
191 178
  - Hossein Bukhamsin (husinluck)
192 179
  - Fabrice Bernhard (fabriceb)
193 180
  - develop
194 181
  - 77web (77web)
195 182
  - Joshua Nye (zerosanity)
183
+ - andrewtch (andrewtch)
196 184
  - markchalloner (markchalloner)
197 185
  - Michael Williams (mtotheikle)
198 186
  - Casper Valdemar Poulsen
199
- - pscheit (pscheit)
187
+ - franmomu (franmomu)
200 188
  - Degory Valentine
201 189
  - Krzysiek Łabuś (Crozin)
190
+ - superjavason (superjavason)
202 191
  - Jan Prieser (jaypea)
192
+ - Tom Klingenberg (ktomk)
203 193
  - paulkamer (paulkamer)
204 194
  - Peter Kruithof (pkruithof)
205 195
  - Albert Jessurum (ajessu)
206 196
  - frost-nzcr4 (frost-nzcr4)
207 197
  - Abhoryo (Abhoryo)
208 198
  - Fabian Vogler (fabian)
199
+ - Maksim Kotlyar (makasim)
209 200
  - Grégoire Passault (Gregwar)
201
+ - Manuel de Ruiter (ManuelAC)
210 202
  - Cyril Quintin (cyqui)
203
+ - Gerard van Helden (drm)
211 204
  - kazusuke sasezaki (sasezaki)
212
- - cim-dch (cim-dch)
213
- - Julien DIDIER (juliendidier)
205
+ - Matt Robinson (inanimatt)
214 206
  - Chris Smith (cs278)
215 207
  - Derek ROTH (DerekRoth)
216 208
  - mwsaz
217
- - Juan M Martínez
218
- - Matt Lehner (mlehner)
219 209
  - Emil Einarsson (Einarsson)
220 210
  - Don Pinkster
221 211
  - Michael Roterman (wtfzdotnet)
222 212
  - Arno Geurts
223
- - ds (dantleech)
213
+ - Marek Kalnik (marekkalnik)
224 214
  - Daniel Cestari (dcestari)
225 215
  - Magnus Nordlander (magnusnordlander)
226
- - Pavel Campr (pcampr)
227
- - Markus Tacker (tacker)
216
+ - Adam Monsen (meonkeys)
217
+ - Robert Gruendler (pulse00)
228 218
  - Benoît Merlet (trompette)
229 219
  - Jan Behrens (deegital)
230 220
  - sensio
231 221
  - Théophile Helleboid - chtitux (chtitux)
222
+ - xaav
223
+ - Anton Babenko (antonbabenko)
232 224
  - irmantas (irmantas)
233 225
  - tero (tero)
226
+ - Martin Hasoň
227
+ - Vadim Tyukov (vatson)
234 228
  - Stainslav Turza (S0RIEN)
235 229
  - chispita
236 230
  - Tobias Sjösten (tobiassjosten)
237 231
  - Wojciech Sznapka (wowo)
232
+ - Sebastian Marek (proofek)
238 233
  - cedric lombardot (cedriclombardot)
239 234
  - John Kary (johnkary)
240 235
  - Martijn Evers (martijn4evers)
241 236
  - Jeremy Bush (zombor)
242 237
  - Davide Borsatto (davideborsatto)
243 238
  - kaiwa
239
+ - Neil Katin
244 240
  - Gustavo Adrian
245 241
  - Nicolas Fabre (nfabre)
246 242
  - heccjj (heccjj)
@@ -248,27 +244,33 @@ Symfony2 is the result of the work of many people who made the code better
248 244
  - Cédric Lahouste (RapotOR)
249 245
  - George Giannoulopoulos (dotoree)
250 246
  - Alberto Pirovano (geezmo)
247
+ - Klein Florian (docteurklein)
251 248
  - JerikVenture (JerikVenture)
252 249
  - Evan Kaufman (EvanK)
253 250
  - meckhardt (meckhardt)
251
+ - Mike Lively (mlively)
254 252
  - Sebastian Ionescu
255 253
  - Dirk Pahl (dirkaholic)
256 254
  - Nicolas Badey (Nico-B)
255
+ - pscheit (pscheit)
257 256
  - Bouke Haarsma (Bouke)
258 257
  - Lars Strojny
259 258
  - Yrwein (Yrwein)
260 259
  - pborreli
260
+ - Thomas Bibb (thomasbibb)
261
+ - Ivan Kurnosov
262
+ - stloyd
261 263
  - Christoph Nißle (DerStoffel)
262 264
  - Luis Muñoz
263 265
  - Oleg Zinchenko (cystbear)
266
+ - Grégoire Paris (greg0ire)
264 267
  - Guilherme Blanco (guilhermeblanco)
265 268
  - Stefano Sala (stewe)
266 269
  - Romain Dorgueil
267 270
  - Benjamin Lévêque (benji07)
268
- - Sebastian Hörl (blogsh)
269 271
  - Benjamin Zikarsky (bzikarsky)
272
+ - alefranz (alefranz)
270 273
  - Andy Stanberry (cranberyxl)
271
- - Gerard van Helden (drm)
272 274
  - Alessio (ioalessio)
273 275
  - Jérôme Macias (jeromemacias)
274 276
  - Philip Dahlstrøm (phidah)
@@ -283,12 +285,16 @@ Symfony2 is the result of the work of many people who made the code better
283 285
  - Pierre-Yves LEBECQ (pylebecq)
284 286
  - Jan Eichhorn (Exeu)
285 287
  - Alexander Zogheb
288
+ - Kirill chEbba Chebunin (chEbba)
289
+ - cim-dch (cim-dch)
286 290
  - Dan Ordille (dordille)
291
+ - Julien DIDIER (juliendidier)
287 292
  - Martin Mayer (martinmayer)
288 293
  - Baptiste Clavié (Taluu)
289 294
  - Tuxosaurus (Tuxosaurus)
290 295
  - Hugo Hamon
291 296
  - Lenar Lõhmus
297
+ - Juan M Martínez
292 298
  - Alex
293 299
  - agilemedialab (agilemedialab)
294 300
  - Masao Maeda (brtriver)
@@ -298,23 +304,29 @@ Symfony2 is the result of the work of many people who made the code better
298 304
  - Gabriel Birke (gbirke)
299 305
  - Osman Üngür (import)
300 306
  - Robert Campbell (jayrulez)
307
+ - Maerlyn (maerlyn)
301 308
  - Matthew Davis (mdavis1982)
309
+ - Matt Lehner (mlehner)
310
+ - Matthias (mpdude)
302 311
  - Jimmy Leger (redpanda)
303
- - Tom Van Looy
304 312
  - Nicolas A. Bérard-Nault
305 313
  - Alexey Popkov
306 314
  - Adán Lobato (adanlobato)
307 315
  - chesteroni (chesteroni)
308 316
  - Elnur Abdurrakhimov (elnur)
309 317
  - Beau Simensen (simensen)
318
+ - Tom Van Looy (tvlooy)
310 319
  - Juan Ases García (Ases)
311 320
  - FabienD (FabienD)
321
+ - Jörg Rühl (LennyLinux)
312 322
  - Matt Drollette (MDrollette)
313 323
  - Skorney (Skorney)
314 324
  - Vincent (Vincent-P)
325
+ - Drew Butler
315 326
  - Pierre-Louis LAUNAY
316 327
  - Sébastien HOUZE
317 328
  - Sergiy Sokolenko
329
+ - Bernd Matzner (bmatzner)
318 330
  - Vladimir Sazhin (cannie)
319 331
  - catchamonkey (catchamonkey)
320 332
  - Christian Stocker (chregu)
@@ -322,31 +334,45 @@ Symfony2 is the result of the work of many people who made the code better
322 334
  - Luis Cordova (cordoval)
323 335
  - Damien Alexandre (damienalexandre)
324 336
  - Damon Jones (damonjones)
337
+ - ds (dantleech)
325 338
  - Djama Suemenich (djama)
326 339
  - Daniel Londero (dlondero)
327 340
  - dorkitude (dorkitude)
341
+ - David Soria Parra (dsp)
328 342
  - Kousuke Ebihara (ebihara)
329 343
  - Vladislav  (ideea)
344
+ - John Carr (Jc2k)
345
+ - jdewit (jdewit)
346
+ - Justin Rainbow (justinrainbow)
330 347
  - Abdulkadir N. A. (kadeer)
331 348
  - Krzysztof Menżyk (krymen)
332 349
  - kwiateusz (kwiateusz)
333 350
  - Samuel Laulhau (lalop)
351
+ - Javier López (loalf)
334 352
  - Penny Leach (mjollnir)
335 353
  - Michael Schneider (mschneid)
336
- - Drew Butler (nodrew)
337 354
  - Oncle Tom (oncletom)
338 355
  - ouardisoft (ouardisoft)
356
+ - Pavel Campr (pcampr)
339 357
  - Petr Jaroš (petajaros)
340 358
  - pzwosta (pzwosta)
359
+ - Rafael Dohms (rdohms)
341 360
  - Ruud Kamphuis (ruudk)
361
+ - Markus Tacker (tacker)
342 362
  - Matt Fitzgerald (tirnanog06)
363
+ - Tyler Stroud (tystr)
343 364
  - Vyacheslav Slinko (vslinko)
344 365
  - Josiah (web-dev)
366
+ - Xavier HAUSHERR (xkobal)
345 367
  - Gustavo Adrian
346 368
  - max
369
+ - Hans (drublic)
370
+ - m0ppers (m0ppers)
347 371
  - Marcel Beerta (mazen)
348 372
  - Muharrem Demirci (mdemirci)
349 373
  - meze (meze)
374
+ - Michael (mshtukin)
350 375
  - Nicolas de Marqué Fromentin (nicodmf)
351 376
  - Florent Cailhol (ooflorent)
352 377
  - Pierre (ptheg)
378
+ - Teo (teo-sk)

+ 3 - 1
vendor/symfony/check_cs Voir le fichier

@@ -94,7 +94,9 @@ foreach ($finder as $file) {
94 94
     }
95 95
 
96 96
     // [Structure] elseif, not else if
97
-    $new = preg_replace('/} else if \(/', '} elseif (', $new);
97
+    if ('twig' !== $file->getExtension()) {
98
+        $new = preg_replace('/} else if \(/', '} elseif (', $new);
99
+    }
98 100
 
99 101
     if ($new != $old) {
100 102
         $count++;

+ 1 - 2
vendor/symfony/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "The Symfony PHP framework",
5 5
     "keywords": ["framework"],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {
@@ -21,7 +20,7 @@
21 20
         "doctrine/common": "2.1.*",
22 21
         "monolog/monolog": "1.0.*",
23 22
         "swiftmailer/swiftmailer": ">=4.1.2,<4.2-dev",
24
-        "twig/twig": ">=1.1,<1.5-dev"
23
+        "twig/twig": ">=1.1,<2.0-dev"
25 24
     },
26 25
     "replace": {
27 26
         "symfony/doctrine-bridge": "self.version",

+ 1 - 1
vendor/symfony/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php Voir le fichier

@@ -88,7 +88,7 @@ class DoctrineDataCollector extends DataCollector
88 88
     private function sanitizeQueries($queries)
89 89
     {
90 90
         foreach ($queries as $i => $query) {
91
-            foreach ($query['params'] as $j => $param) {
91
+            foreach ((array)$query['params'] as $j => $param) {
92 92
                 $queries[$i]['params'][$j] = $this->varToString($param);
93 93
             }
94 94
         }

+ 1 - 1
vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php Voir le fichier

@@ -185,7 +185,7 @@ class EntityChoiceList extends ArrayChoiceList
185 185
             } else {
186 186
                 // Otherwise expect a __toString() method in the entity
187 187
                 if (!method_exists($entity, '__toString')) {
188
-                    throw new FormException('Entities passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option).');
188
+                    throw new FormException(sprintf('Entity "%s" passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option).', $this->class));
189 189
                 }
190 190
 
191 191
                 $value = (string) $entity;

+ 0 - 1
vendor/symfony/src/Symfony/Bridge/Doctrine/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "Symfony Doctrine Bridge",
5 5
     "keywords": [],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {

+ 0 - 1
vendor/symfony/src/Symfony/Bridge/Monolog/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "Symfony Monolog Bridge",
5 5
     "keywords": [],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {

+ 0 - 1
vendor/symfony/src/Symfony/Bridge/Swiftmailer/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "Symfony Swiftmailer Bridge",
5 5
     "keywords": [],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {

+ 1 - 1
vendor/symfony/src/Symfony/Bridge/Twig/Extension/FormExtension.php Voir le fichier

@@ -67,7 +67,7 @@ class FormExtension extends \Twig_Extension
67 67
     public function getTokenParsers()
68 68
     {
69 69
         return array(
70
-            // {% form_theme form "SomeBungle::widgets.twig" %}
70
+            // {% form_theme form "SomeBundle::widgets.twig" %}
71 71
             new FormThemeTokenParser(),
72 72
         );
73 73
     }

+ 1 - 2
vendor/symfony/src/Symfony/Bridge/Twig/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "Symfony Twig Bridge",
5 5
     "keywords": [],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {
@@ -18,7 +17,7 @@
18 17
     ],
19 18
     "require": {
20 19
         "php": ">=5.3.2",
21
-        "twig/twig": ">=1.1,<1.5-dev"
20
+        "twig/twig": ">=1.1,<2.0-dev"
22 21
     },
23 22
     "suggest": {
24 23
         "symfony/form": "self.version",

+ 0 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineAbstractBundle/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "Symfony DoctrineAbstractBundle",
5 5
     "keywords": [],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php Voir le fichier

@@ -28,7 +28,7 @@ class CreateDatabaseDoctrineCommand extends DoctrineCommand
28 28
     {
29 29
         $this
30 30
             ->setName('doctrine:database:create')
31
-            ->setDescription('Create the configured databases')
31
+            ->setDescription('Creates the configured databases')
32 32
             ->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
33 33
             ->setHelp(<<<EOT
34 34
 The <info>doctrine:database:create</info> command creates the default

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php Voir le fichier

@@ -27,7 +27,7 @@ class DropDatabaseDoctrineCommand extends DoctrineCommand
27 27
     {
28 28
         $this
29 29
             ->setName('doctrine:database:drop')
30
-            ->setDescription('Drop the configured databases')
30
+            ->setDescription('Drops the configured databases')
31 31
             ->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
32 32
             ->addOption('force', null, InputOption::VALUE_NONE, 'Set this parameter to execute this action')
33 33
             ->setHelp(<<<EOT

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php Voir le fichier

@@ -31,7 +31,7 @@ class GenerateEntitiesDoctrineCommand extends DoctrineCommand
31 31
         $this
32 32
             ->setName('doctrine:generate:entities')
33 33
             ->setAliases(array('generate:doctrine:entities'))
34
-            ->setDescription('Generate entity classes and method stubs from your mapping information')
34
+            ->setDescription('Generates entity classes and method stubs from your mapping information')
35 35
             ->addArgument('name', InputArgument::REQUIRED, 'A bundle name, a namespace, or a class name')
36 36
             ->addOption('path', null, InputOption::VALUE_REQUIRED, 'The path where to generate entities when it cannot be guessed')
37 37
             ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Do not backup existing entities files.')

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php Voir le fichier

@@ -37,7 +37,7 @@ class ImportMappingDoctrineCommand extends DoctrineCommand
37 37
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
38 38
             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be mapped.')
39 39
             ->addOption('force', null, InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.')
40
-            ->setDescription('Import mapping information from an existing database')
40
+            ->setDescription('Imports mapping information from an existing database')
41 41
             ->setHelp(<<<EOT
42 42
 The <info>doctrine:mapping:import</info> command imports mapping information
43 43
 from an existing database:

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/InfoDoctrineCommand.php Voir le fichier

@@ -28,7 +28,7 @@ class InfoDoctrineCommand extends DoctrineCommand
28 28
         $this
29 29
             ->setName('doctrine:mapping:info')
30 30
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
31
-            ->setDescription('Show basic information about all mapped entities')
31
+            ->setDescription('Shows basic information about all mapped entities')
32 32
             ->setHelp(<<<EOT
33 33
 The <info>doctrine:mapping:info</info> shows basic information about which
34 34
 entities exist and possibly if their mapping information contains errors or

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearMetadataCacheDoctrineCommand.php Voir le fichier

@@ -30,7 +30,7 @@ class ClearMetadataCacheDoctrineCommand extends MetadataCommand
30 30
 
31 31
         $this
32 32
             ->setName('doctrine:cache:clear-metadata')
33
-            ->setDescription('Clear all metadata cache for a entity manager')
33
+            ->setDescription('Clears all metadata cache for a entity manager')
34 34
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
35 35
             ->setHelp(<<<EOT
36 36
 The <info>doctrine:cache:clear-metadata</info> command clears all metadata

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearQueryCacheDoctrineCommand.php Voir le fichier

@@ -30,7 +30,7 @@ class ClearQueryCacheDoctrineCommand extends QueryCommand
30 30
 
31 31
         $this
32 32
             ->setName('doctrine:cache:clear-query')
33
-            ->setDescription('Clear all query cache for a entity manager')
33
+            ->setDescription('Clears all query cache for a entity manager')
34 34
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
35 35
             ->setHelp(<<<EOT
36 36
 The <info>doctrine:cache:clear-query</info> command clears all query cache for

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearResultCacheDoctrineCommand.php Voir le fichier

@@ -30,7 +30,7 @@ class ClearResultCacheDoctrineCommand extends ResultCommand
30 30
 
31 31
         $this
32 32
             ->setName('doctrine:cache:clear-result')
33
-            ->setDescription('Clear result cache for a entity manager')
33
+            ->setDescription('Clears result cache for a entity manager')
34 34
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
35 35
             ->setHelp(<<<EOT
36 36
 The <info>doctrine:cache:clear-result</info> command clears all result cache

+ 2 - 2
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php Voir le fichier

@@ -42,9 +42,9 @@ class DoctrineBundle extends Bundle
42 42
         if ($this->container->hasParameter('doctrine.orm.proxy_namespace')) {
43 43
             $namespace = $this->container->getParameter('doctrine.orm.proxy_namespace');
44 44
             $dir = $this->container->getParameter('doctrine.orm.proxy_dir');
45
-            $container = $this->container;
45
+            $container =& $this->container;
46 46
 
47
-            spl_autoload_register(function($class) use ($namespace, $dir, $container) {
47
+            spl_autoload_register(function($class) use ($namespace, $dir, &$container) {
48 48
                 if (0 === strpos($class, $namespace)) {
49 49
                     $className = substr($class, strlen($namespace) +1);
50 50
                     $file = $dir.DIRECTORY_SEPARATOR.$className.'.php';

+ 4 - 4
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php Voir le fichier

@@ -75,8 +75,8 @@ class MetadataFactory
75 75
 
76 76
         $all = $metadata->getMetadata();
77 77
         if (class_exists($class)) {
78
-            $r = $all[0]->getReflectionClass();
79
-            $path = $this->getBasePathForClass($class, $r->getNamespacename(), dirname($r->getFilename()));
78
+            $r = new \ReflectionClass($all[0]->name);
79
+            $path = $this->getBasePathForClass($class, $r->getNamespaceName(), dirname($r->getFilename()));
80 80
             $metadata->setNamespace($r->getNamespacename());
81 81
         } elseif (!$path) {
82 82
             throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $class));
@@ -104,8 +104,8 @@ class MetadataFactory
104 104
 
105 105
         $all = $metadata->getMetadata();
106 106
         if (class_exists($all[0]->name)) {
107
-            $r = $all[0]->getReflectionClass();
108
-            $path = $this->getBasePathForClass($namespace, $r->getNamespacename(), dirname($r->getFilename()));
107
+            $r = new \ReflectionClass($all[0]->name);
108
+            $path = $this->getBasePathForClass($namespace, $r->getNamespaceName(), dirname($r->getFilename()));
109 109
         } elseif (!$path) {
110 110
             throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $all[0]->name));
111 111
         }

+ 0 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/composer.json Voir le fichier

@@ -4,7 +4,6 @@
4 4
     "description": "Symfony DoctrineBundle",
5 5
     "keywords": [],
6 6
     "homepage": "http://symfony.com",
7
-    "version": "2.0.7",
8 7
     "license": "MIT",
9 8
     "authors": [
10 9
         {

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php Voir le fichier

@@ -35,7 +35,7 @@ class AssetsInstallCommand extends ContainerAwareCommand
35 35
                 new InputArgument('target', InputArgument::REQUIRED, 'The target directory (usually "web")'),
36 36
             ))
37 37
             ->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlinks the assets instead of copying it')
38
-            ->setDescription('Install bundles web assets under a public web directory')
38
+            ->setDescription('Installs bundles web assets under a public web directory')
39 39
             ->setHelp(<<<EOT
40 40
 The <info>assets:install</info> command installs bundle assets into a given
41 41
 directory (e.g. the web directory).

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php Voir le fichier

@@ -37,7 +37,7 @@ class CacheClearCommand extends ContainerAwareCommand
37 37
             ->setDefinition(array(
38 38
                 new InputOption('no-warmup', '', InputOption::VALUE_NONE, 'Do not warm up the cache'),
39 39
             ))
40
-            ->setDescription('Clear the cache')
40
+            ->setDescription('Clears the cache')
41 41
             ->setHelp(<<<EOF
42 42
 The <info>cache:clear</info> command clears the application cache for a given environment
43 43
 and debug mode:

+ 2 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php Voir le fichier

@@ -554,7 +554,8 @@ class FrameworkExtension extends Extension
554 554
 
555 555
     private function getValidatorXmlMappingFiles(ContainerBuilder $container)
556 556
     {
557
-        $files = array(__DIR__.'/../../../Component/Form/Resources/config/validation.xml');
557
+        $reflClass = new \ReflectionClass('Symfony\Component\Form\FormInterface');
558
+        $files = array(dirname($reflClass->getFileName()).'/Resources/config/validation.xml');
558 559
         $container->addResource(new FileResource($files[0]));
559 560
 
560 561
         foreach ($container->getParameter('kernel.bundles') as $bundle) {

+ 1 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php Voir le fichier

@@ -12,6 +12,7 @@
12 12
 namespace Symfony\Bundle\FrameworkBundle;
13 13
 
14 14
 use Symfony\Component\HttpFoundation\Request;
15
+use Symfony\Component\HttpFoundation\Response;
15 16
 use Symfony\Component\HttpKernel\HttpKernelInterface;
16 17
 use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
17 18
 use Symfony\Component\DependencyInjection\ContainerInterface;

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml Voir le fichier

@@ -7,7 +7,7 @@
7 7
     <parameters>
8 8
         <parameter key="event_dispatcher.class">Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher</parameter>
9 9
         <parameter key="http_kernel.class">Symfony\Bundle\FrameworkBundle\HttpKernel</parameter>
10
-        <parameter key="filesystem.class">Symfony\Component\HttpKernel\Util\Filesystem</parameter>
10
+        <parameter key="filesystem.class">Symfony\Component\Filesystem\Filesystem</parameter>
11 11
         <parameter key="cache_warmer.class">Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate</parameter>
12 12
         <parameter key="file_locator.class">Symfony\Component\HttpKernel\Config\FileLocator</parameter>
13 13
     </parameters>

+ 4 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xliff Voir le fichier

@@ -162,6 +162,10 @@
162 162
                 <source>This value is not a valid country</source>
163 163
                 <target>Aquest valor no és un país vàlid</target>
164 164
             </trans-unit>
165
+            <trans-unit id="41">
166
+                <source>This value is already used</source>
167
+                <target>Aquest valor ja s'ha utilitzat</target>
168
+            </trans-unit>
165 169
         </body>
166 170
     </file>
167 171
 </xliff>

+ 4 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xliff Voir le fichier

@@ -162,6 +162,10 @@
162 162
                 <source>This value is not a valid country</source>
163 163
                 <target>Este valor no es un país válido</target>
164 164
             </trans-unit>
165
+            <trans-unit id="41">
166
+                <source>This value is already used</source>
167
+                <target>Este valor ya se ha utilizado</target>
168
+            </trans-unit>
165 169
         </body>
166 170
     </file>
167 171
 </xliff>

+ 4 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xliff Voir le fichier

@@ -162,6 +162,10 @@
162 162
                 <source>This value is not a valid country</source>
163 163
                 <target>Ez az érték nem egy érvényes ország</target>
164 164
             </trans-unit>
165
+            <trans-unit id="41">
166
+                <source>This value is already used</source>
167
+                <target>Ez az érték már használva van</target>
168
+            </trans-unit>
165 169
         </body>
166 170
     </file>
167 171
 </xliff>

+ 0 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xliff Voir le fichier


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff