Pārlūkot izejas kodu

Maj sf 2.0.8 -> 2.0.11

bastien 12 gadus atpakaļ
vecāks
revīzija
b54ed21fa6
100 mainītis faili ar 1048 papildinājumiem un 671 dzēšanām
  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 Parādīt failu

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

+ 7 - 16
deps Parādīt failu

1
 [symfony]
1
 [symfony]
2
     git=http://github.com/symfony/symfony.git
2
     git=http://github.com/symfony/symfony.git
3
-    version=v2.0.8
3
+    version=v2.0.11
4
 
4
 
5
 [twig]
5
 [twig]
6
     git=http://github.com/fabpot/Twig.git
6
     git=http://github.com/fabpot/Twig.git
7
-    version=v1.4.0
7
+    version=v1.6.0
8
 
8
 
9
 [monolog]
9
 [monolog]
10
     git=http://github.com/Seldaek/monolog.git
10
     git=http://github.com/Seldaek/monolog.git
16
 
16
 
17
 [doctrine-dbal]
17
 [doctrine-dbal]
18
     git=http://github.com/doctrine/dbal.git
18
     git=http://github.com/doctrine/dbal.git
19
-    version=2.1.5
19
+    version=2.1.6
20
 
20
 
21
 [doctrine]
21
 [doctrine]
22
     git=http://github.com/doctrine/doctrine2.git
22
     git=http://github.com/doctrine/doctrine2.git
23
-    version=2.1.5
23
+    version=2.1.6
24
 
24
 
25
 [swiftmailer]
25
 [swiftmailer]
26
     git=http://github.com/swiftmailer/swiftmailer.git
26
     git=http://github.com/swiftmailer/swiftmailer.git
27
-    version=v4.1.4
27
+    version=v4.1.5
28
 
28
 
29
 [assetic]
29
 [assetic]
30
     git=http://github.com/kriswallsmith/assetic.git
30
     git=http://github.com/kriswallsmith/assetic.git
55
 [SensioGeneratorBundle]
55
 [SensioGeneratorBundle]
56
     git=http://github.com/sensio/SensioGeneratorBundle.git
56
     git=http://github.com/sensio/SensioGeneratorBundle.git
57
     target=/bundles/Sensio/Bundle/GeneratorBundle
57
     target=/bundles/Sensio/Bundle/GeneratorBundle
58
+    version=origin/2.0
58
 
59
 
59
 [AsseticBundle]
60
 [AsseticBundle]
60
     git=http://github.com/symfony/AsseticBundle.git
61
     git=http://github.com/symfony/AsseticBundle.git
61
     target=/bundles/Symfony/Bundle/AsseticBundle
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 Parādīt failu

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
 SensioDistributionBundle 20b66a408084ad8752f98e50f10533f5245310bf
13
 SensioDistributionBundle 20b66a408084ad8752f98e50f10533f5245310bf
14
-SensioGeneratorBundle 87fe88c4c8dc09cb197ba4b2d6d5b834e2c64980
14
+SensioGeneratorBundle dd37fc4487bc09ac01bdcf89e0ff4ee4484b7fab
15
+AsseticBundle v1.0.1

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadElementData.php Parādīt failu

2
 
2
 
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4
 
4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
67
     return date('Y-m-d H:i:s', time() - 60 * 60 *24 * $ecal);
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
     $this->entity_manager = $entity_manager;
73
     $this->entity_manager = $entity_manager;
73
     
74
     

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadGroupData.php Parādīt failu

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

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadTagData.php Parādīt failu

2
 
2
 
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4
 
4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
35
     $this->addReference('tag_'.strtolower(str_replace(' ', '-', $name)), $tag);
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
     $this->entity_manager = $entity_manager;
41
     $this->entity_manager = $entity_manager;
41
 
42
 

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadUsersElementsFavoritesData.php Parādīt failu

2
 
2
 
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4
 
4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
36
     //$this->addReference('user_tag_'.$user->getId().'_'.$tag->getId(), $userTag);
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
     $this->entity_manager = $entity_manager;
42
     $this->entity_manager = $entity_manager;
42
 
43
 

+ 2 - 1
src/Muzich/CoreBundle/DataFixtures/ORM/LoadUsersTagsFavoritesData.php Parādīt failu

2
 
2
 
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4
 
4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
37
     //$this->addReference('user_tag_'.$user->getId().'_'.$tag->getId(), $userTag);
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
     $this->entity_manager = $entity_manager;
43
     $this->entity_manager = $entity_manager;
43
 
44
 

+ 2 - 1
src/Muzich/UserBundle/DataFixtures/ORM/LoadUserData.php Parādīt failu

2
 
2
 
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
3
 namespace Muzich\UserBundle\DataFixtures\ORM;
4
 
4
 
5
+use Doctrine\Common\Persistence\ObjectManager;
5
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\AbstractFixture;
6
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
7
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
8
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
65
     $this->entity_manager->persist($heFollowHim);
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
     $this->entity_manager = $entity_manager;
72
     $this->entity_manager = $entity_manager;

+ 1 - 1
vendor/bundles/FOS/UserBundle

1
-Subproject commit 2fed320b14593455d6e821d081f76ee27cb0a8e1
1
+Subproject commit a0e50724825fd73531a563f514168d8536b9187e

+ 1 - 1
vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php Parādīt failu

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

+ 3 - 0
vendor/bundles/Sensio/Bundle/GeneratorBundle/Command/GenerateBundleCommand.php Parādīt failu

145
             'sub-namespaces, and it should end with the bundle name itself',
145
             'sub-namespaces, and it should end with the bundle name itself',
146
             '(which must have <comment>Bundle</comment> as a suffix).',
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
             'Use <comment>/</comment> instead of <comment>\\</comment> for the namespace delimiter to avoid any problem.',
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 Parādīt failu

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

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineCrudGenerator.php Parādīt failu

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

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineEntityGenerator.php Parādīt failu

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

+ 1 - 1
vendor/bundles/Sensio/Bundle/GeneratorBundle/Generator/DoctrineFormGenerator.php Parādīt failu

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

+ 0 - 1
vendor/bundles/Symfony/Bundle/AsseticBundle/Controller/AsseticController.php Parādīt failu

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

+ 1 - 1
vendor/bundles/Symfony/Bundle/AsseticBundle/DependencyInjection/DirectoryResourceDefinition.php Parādīt failu

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

+ 0 - 2
vendor/bundles/Symfony/Bundle/AsseticBundle/Resources/config/filters/coffee.xml Parādīt failu

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

+ 0 - 27
vendor/bundles/Symfony/Bundle/AsseticBundle/composer.json Parādīt failu

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 Parādīt failu

41
      */
41
      */
42
     public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
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
         if ($params['host'] !== 'localhost' && $params['host'] != '127.0.0.1') {
48
         if ($params['host'] !== 'localhost' && $params['host'] != '127.0.0.1') {
50
             $params['dbname'] = 'DRIVER={IBM DB2 ODBC DRIVER}' .
50
             $params['dbname'] = 'DRIVER={IBM DB2 ODBC DRIVER}' .
51
                      ';DATABASE=' . $params['dbname'] .
51
                      ';DATABASE=' . $params['dbname'] .
52
                      ';HOSTNAME=' . $params['host'] .
52
                      ';HOSTNAME=' . $params['host'] .
53
-                     ';PORT='     . $params['port'] .
54
                      ';PROTOCOL=' . $params['protocol'] .
53
                      ';PROTOCOL=' . $params['protocol'] .
55
                      ';UID='      . $username .
54
                      ';UID='      . $username .
56
                      ';PWD='      . $password .';';
55
                      ';PWD='      . $password .';';
56
+            if (isset($params['port'])) {
57
+                $params['dbname'] .= 'PORT=' . $params['port'];
58
+            }
59
+
57
             $username = null;
60
             $username = null;
58
             $password = null;
61
             $password = null;
59
         }
62
         }

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php Parādīt failu

987
         $sql = $this->_getCreateTableSQL($tableName, $columns, $options);
987
         $sql = $this->_getCreateTableSQL($tableName, $columns, $options);
988
         if ($this->supportsCommentOnStatement()) {
988
         if ($this->supportsCommentOnStatement()) {
989
             foreach ($table->getColumns() AS $column) {
989
             foreach ($table->getColumns() AS $column) {
990
-                if ($column->getComment()) {
990
+                if ($this->getColumnComment($column)) {
991
                     $sql[] = $this->getCommentOnColumnSQL($tableName, $column->getName(), $this->getColumnComment($column));
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 Parādīt failu

596
             }
596
             }
597
 
597
 
598
             if ($offset == 0) {
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
             } else {
600
             } else {
601
                 $orderby = stristr($query, 'ORDER BY');
601
                 $orderby = stristr($query, 'ORDER BY');
602
 
602
 

+ 16 - 10
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/OraclePlatform.php Parādīt failu

450
           cols.position,
450
           cols.position,
451
           r_alc.table_name \"references_table\",
451
           r_alc.table_name \"references_table\",
452
           r_cols.column_name \"foreign_column\"
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
        ON alc.constraint_name = cols.constraint_name
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
        ON alc.r_constraint_name = r_alc.constraint_name
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
        ON r_alc.constraint_name = r_cols.constraint_name
459
        ON r_alc.constraint_name = r_cols.constraint_name
462
-      AND r_alc.owner = r_cols.owner
463
       AND cols.position = r_cols.position
460
       AND cols.position = r_cols.position
464
     WHERE alc.constraint_name = cols.constraint_name
461
     WHERE alc.constraint_name = cols.constraint_name
465
       AND alc.constraint_type = 'R'
462
       AND alc.constraint_type = 'R'
475
     public function getListTableColumnsSQL($table, $database = null)
472
     public function getListTableColumnsSQL($table, $database = null)
476
     {
473
     {
477
         $table = strtoupper($table);
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 Parādīt failu

269
         $whereClause = $namespaceAlias.".nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND ";
269
         $whereClause = $namespaceAlias.".nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND ";
270
         if (strpos($table, ".") !== false) {
270
         if (strpos($table, ".") !== false) {
271
             list($schema, $table) = explode(".", $table);
271
             list($schema, $table) = explode(".", $table);
272
-            $whereClause .= "$classAlias.relname = '" . $table . "' AND $namespaceAlias.nspname = '" . $schema . "'";
272
+            $schema = "'" . $schema . "'";
273
         } else {
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
         return $whereClause;
278
         return $whereClause;
278
     }
279
     }

+ 1 - 0
vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php Parādīt failu

470
             'longtext'         => 'text',
470
             'longtext'         => 'text',
471
             'text'             => 'text',
471
             'text'             => 'text',
472
             'varchar'          => 'string',
472
             'varchar'          => 'string',
473
+            'longvarchar'      => 'string',
473
             'varchar2'         => 'string',
474
             'varchar2'         => 'string',
474
             'nvarchar'         => 'string',
475
             'nvarchar'         => 'string',
475
             'image'            => 'string',
476
             'image'            => 'string',

+ 3 - 3
vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php Parādīt failu

473
      */
473
      */
474
     public function dropAndCreateSequence(Sequence $sequence)
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
     {
799
     {
800
         return str_replace('(DC2Type:'.$type.')', '', $comment);
800
         return str_replace('(DC2Type:'.$type.')', '', $comment);
801
     }
801
     }
802
-}
802
+}

+ 35 - 17
vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php Parādīt failu

170
         return new Column($tableColumn['field'], \Doctrine\DBAL\Types\Type::getType($type), $options);
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 Parādīt failu

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

+ 1 - 1
vendor/doctrine-dbal/lib/Doctrine/DBAL/Types/BigIntType.php Parādīt failu

43
 
43
 
44
     public function getBindingType()
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 Parādīt failu

36
     /**
36
     /**
37
      * Current Doctrine Version
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
      * Compares a Doctrine version with the current one.
42
      * Compares a Doctrine version with the current one.

+ 15 - 1
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php Parādīt failu

31
         $this->_sm = $this->_conn->getSchemaManager();
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
     public function testListSequences()
47
     public function testListSequences()
35
     {
48
     {
36
         if(!$this->_conn->getDatabasePlatform()->supportsSequences()) {
49
         if(!$this->_conn->getDatabasePlatform()->supportsSequences()) {
522
         }
535
         }
523
         $this->assertTrue($foundTable, "Could not find new table");
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 Parādīt failu

205
         $this->assertEquals($this->getAlterTableColumnCommentsSQL(), $this->_platform->getAlterTableSQL($tableDiff));
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
     public function getCreateTableColumnCommentsSQL()
218
     public function getCreateTableColumnCommentsSQL()
209
     {
219
     {
210
         $this->markTestSkipped('Platform does not support Column comments.');
220
         $this->markTestSkipped('Platform does not support Column comments.');
214
     {
224
     {
215
         $this->markTestSkipped('Platform does not support Column comments.');
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
      * @group DBAL-45
234
      * @group DBAL-45
220
      */
235
      */

+ 5 - 0
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php Parādīt failu

204
     {
204
     {
205
         return array("ALTER TABLE mytable ADD quota INT NOT NULL COMMENT 'A comment', CHANGE bar baz VARCHAR(255) NOT NULL COMMENT 'B comment'");
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 Parādīt failu

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
     public function getAlterTableColumnCommentsSQL()
206
     public function getAlterTableColumnCommentsSQL()
199
     {
207
     {
200
         return array(
208
         return array(

+ 8 - 0
vendor/doctrine-dbal/tests/Doctrine/Tests/DBAL/Platforms/PostgreSqlPlatformTest.php Parādīt failu

216
             "COMMENT ON COLUMN mytable.baz IS 'B comment'",
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 Parādīt failu

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
-Subproject commit 738983423b12d80a127424cd0ade6c45a633a706
1
+Subproject commit ffee818a6e3af526b774de11b690a36512fa6235

+ 4 - 4
vendor/doctrine/build.xml Parādīt failu

92
            <dependencies>
92
            <dependencies>
93
                <php minimum_version="5.3.0" />
93
                <php minimum_version="5.3.0" />
94
                <pear minimum_version="1.6.0" recommended_version="1.6.1" />
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
            </dependencies>
99
            </dependencies>
100
            <dirroles key="bin">script</dirroles>
100
            <dirroles key="bin">script</dirroles>
101
            <ignore>Doctrine/Common/</ignore>
101
            <ignore>Doctrine/Common/</ignore>

+ 1 - 1
vendor/doctrine/composer.json Parādīt failu

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

+ 5 - 2
vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php Parādīt failu

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

+ 2 - 2
vendor/doctrine/lib/Doctrine/ORM/Query/Expr.php Parādīt failu

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

+ 10 - 10
vendor/doctrine/lib/Doctrine/ORM/Query/Expr/Composite.php Parādīt failu

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

+ 10 - 2
vendor/doctrine/lib/Doctrine/ORM/Query/SqlWalker.php Parādīt failu

36
 class SqlWalker implements TreeWalker
36
 class SqlWalker implements TreeWalker
37
 {
37
 {
38
     /**
38
     /**
39
+     * @var string
40
+     */
41
+    const HINT_DISTINCT = 'doctrine.distinct';
42
+  
43
+    /**
39
      * @var ResultSetMapping
44
      * @var ResultSetMapping
40
      */
45
      */
41
     private $_rsm;
46
     private $_rsm;
516
         $sql = 'SELECT ' . (($selectClause->isDistinct) ? 'DISTINCT ' : '');
521
         $sql = 'SELECT ' . (($selectClause->isDistinct) ? 'DISTINCT ' : '');
517
         $sqlSelectExpressions = array_filter(array_map(array($this, 'walkSelectExpression'), $selectClause->selectExpressions));
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
         $addMetaColumns = ! $this->_query->getHint(Query::HINT_FORCE_PARTIAL_LOAD) &&
528
         $addMetaColumns = ! $this->_query->getHint(Query::HINT_FORCE_PARTIAL_LOAD) &&
520
                 $this->_query->getHydrationMode() == Query::HYDRATE_OBJECT
529
                 $this->_query->getHydrationMode() == Query::HYDRATE_OBJECT
521
                 ||
530
                 ||
736
 
745
 
737
         // Ensure we got the owning side, since it has all mapping info
746
         // Ensure we got the owning side, since it has all mapping info
738
         $assoc = ( ! $relation['isOwningSide']) ? $targetClass->associationMappings[$relation['mappedBy']] : $relation;
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
             if ($relation['type'] == ClassMetadata::ONE_TO_MANY || $relation['type'] == ClassMetadata::MANY_TO_MANY) {
749
             if ($relation['type'] == ClassMetadata::ONE_TO_MANY || $relation['type'] == ClassMetadata::MANY_TO_MANY) {
742
                 throw QueryException::iterateWithFetchJoinNotAllowed($assoc);
750
                 throw QueryException::iterateWithFetchJoinNotAllowed($assoc);
743
             }
751
             }

+ 28 - 6
vendor/doctrine/lib/Doctrine/ORM/QueryBuilder.php Parādīt failu

50
      * @var array The array of DQL parts collected.
50
      * @var array The array of DQL parts collected.
51
      */
51
      */
52
     private $_dqlParts = array(
52
     private $_dqlParts = array(
53
+        'distinct' => false,
53
         'select'  => array(),
54
         'select'  => array(),
54
         'from'    => array(),
55
         'from'    => array(),
55
         'join'    => array(),
56
         'join'    => array(),
119
      * For more complex expression construction, consider storing the expression
120
      * For more complex expression construction, consider storing the expression
120
      * builder object in a local variable.
121
      * builder object in a local variable.
121
      *
122
      *
122
-     * @return Expr
123
+     * @return Query\Expr
123
      */
124
      */
124
     public function expr()
125
     public function expr()
125
     {
126
     {
342
      *         ->from('User', 'u')
343
      *         ->from('User', 'u')
343
      *         ->where('u.id = :user_id1 OR u.id = :user_id2')
344
      *         ->where('u.id = :user_id1 OR u.id = :user_id2')
344
      *         ->setParameters(array(
345
      *         ->setParameters(array(
345
-     *             ':user_id1' => 1,
346
-     *             ':user_id2' => 2
346
+     *             'user_id1' => 1,
347
+     *             'user_id2' => 2
347
      *         ));
348
      *         ));
348
      * </code>
349
      * </code>
349
      *
350
      *
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
      * Adds an item that is to be returned in the query result.
526
      * Adds an item that is to be returned in the query result.
507
      *
527
      *
508
      * <code>
528
      * <code>
973
 
993
 
974
     private function _getDQLForSelect()
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
         $fromParts   = $this->getDQLPart('from');
1000
         $fromParts   = $this->getDQLPart('from');
979
         $joinParts   = $this->getDQLPart('join');
1001
         $joinParts   = $this->getDQLPart('join');
980
         $fromClauses = array();
1002
         $fromClauses = array();
1082
             }
1104
             }
1083
         }
1105
         }
1084
     }
1106
     }
1085
-}
1107
+}

+ 3 - 1
vendor/doctrine/lib/Doctrine/ORM/Tools/EntityGenerator.php Parādīt failu

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

+ 2 - 2
vendor/doctrine/lib/Doctrine/ORM/Tools/SchemaTool.php Parādīt failu

217
 
217
 
218
             if (isset($class->table['indexes'])) {
218
             if (isset($class->table['indexes'])) {
219
                 foreach ($class->table['indexes'] AS $indexName => $indexData) {
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
             if (isset($class->table['uniqueConstraints'])) {
224
             if (isset($class->table['uniqueConstraints'])) {
225
                 foreach ($class->table['uniqueConstraints'] AS $indexName => $indexData) {
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 Parādīt failu

1453
                     } else {
1453
                     } else {
1454
                         throw new EntityNotFoundException;
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 Parādīt failu

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

+ 67 - 0
vendor/doctrine/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1526Test.php Parādīt failu

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 Parādīt failu

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 Parādīt failu

90
         $this->assertEquals('baz', $q->getHint('bar'));
90
         $this->assertEquals('baz', $q->getHint('bar'));
91
         $this->assertEquals(array('foo' => 'bar', 'bar' => 'baz'), $q->getHints());
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 Parādīt failu

732
         
732
         
733
         $this->assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $qb->getDQL());
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 Parādīt failu

1
 Changelog since Version 4.1.x
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
 4.1.4 (2011-12-16)
13
 4.1.4 (2011-12-16)
5
 ------------------
14
 ------------------
6
 
15
 

+ 1 - 1
vendor/swiftmailer/VERSION Parādīt failu

1
-Swift-4.1.4
1
+Swift-4.1.5

+ 1 - 1
vendor/swiftmailer/composer.json Parādīt failu

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

+ 96 - 106
vendor/swiftmailer/doc/headers.rst Parādīt failu

12
 store their headers in a single object called a HeaderSet. This HeaderSet is
12
 store their headers in a single object called a HeaderSet. This HeaderSet is
13
 retrieved with the ``getHeaders()`` method.
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
 For all of the "standard" headers in these MIME entities, such as the
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
 You fetch the HeaderSet from a MIME entity like so:
28
 You fetch the HeaderSet from a MIME entity like so:
31
 
29
 
33
 
31
 
34
     $message = Swift_Message::newInstance();
32
     $message = Swift_Message::newInstance();
35
 
33
 
36
-    //Fetch the HeaderSet from a Message object
34
+    // Fetch the HeaderSet from a Message object
37
     $headers = $message->getHeaders();
35
     $headers = $message->getHeaders();
38
 
36
 
39
     $attachment = Swift_Attachment::fromPath('document.pdf');
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
     $headers = $attachment->getHeaders();
40
     $headers = $attachment->getHeaders();
43
 
41
 
44
 The job of the HeaderSet is to contain and manage instances of Header objects.
42
 The job of the HeaderSet is to contain and manage instances of Header objects.
66
     To
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
 .. code-block:: php
70
 .. code-block:: php
73
 
71
 
87
 Where the complexity comes in is when you want to modify an existing header.
85
 Where the complexity comes in is when you want to modify an existing header.
88
 This complexity comes from the fact that each header can be of a slightly
86
 This complexity comes from the fact that each header can be of a slightly
89
 different type (such as a Date header, or a header that contains email
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
 You can determine the type of header by comparing the return value of its
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
 .. code-block:: php
99
 .. code-block:: php
141
 Header Types
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
 Text Headers
145
 Text Headers
150
 ~~~~~~~~~~~~
146
 ~~~~~~~~~~~~
160
 lines, or non-ascii characters) then the header takes care of encoding the
156
 lines, or non-ascii characters) then the header takes care of encoding the
161
 text so that it can be used.
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
 It's easy to add a new text header to a HeaderSet. You do this by calling the
163
 It's easy to add a new text header to a HeaderSet. You do this by calling the
168
 HeaderSet's ``addTextHeader()`` method.
164
 HeaderSet's ``addTextHeader()`` method.
184
 
180
 
185
     $subject->setValue('new subject');
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
 .. code-block:: php
186
 .. code-block:: php
191
 
187
 
228
 type.
224
 type.
229
 
225
 
230
 The parameterized header type is a special type of text header. It extends the
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
 Adding a parameterized header to a HeaderSet is done by using the
230
 Adding a parameterized header to a HeaderSet is done by using the
236
 ``addParameterizedHeader()`` method which takes a text value like
231
 ``addParameterizedHeader()`` method which takes a text value like
248
       array('foo' => 'bar')
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
 .. code-block:: php
252
 .. code-block:: php
259
 
253
 
260
     $type = $message->getHeaders()->get('Content-Type');
254
     $type = $message->getHeaders()->get('Content-Type');
261
 
255
 
262
-    //setParameters() takes an associative array
256
+    // setParameters() takes an associative array
263
     $type->setParameters(array(
257
     $type->setParameters(array(
264
       'name' => 'file.txt',
258
       'name' => 'file.txt',
265
       'charset' => 'iso-8859-1'
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
     $type->setParameter('charset', 'iso-8859-1');
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
 .. code-block:: php
268
 .. code-block:: php
275
 
269
 
312
 Date Headers
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
 ``Tue, 17 Feb 2009 22:26:31 +1100``.
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
 It's easy to add a new date header to a HeaderSet.  You do this by calling
321
 It's easy to add a new date header to a HeaderSet.  You do this by calling
328
 the HeaderSet's ``addDateHeader()`` method.
322
 the HeaderSet's ``addDateHeader()`` method.
344
 
338
 
345
     $date->setTimestamp(time());
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
 .. code-block:: php
344
 .. code-block:: php
351
 
345
 
367
 represented by an associative array of email addresses and names.
361
 represented by an associative array of email addresses and names.
368
 
362
 
369
 Mailbox headers are probably the most complex header type to understand in
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
 All of the headers that contain e-mail addresses in a message -- with the
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
 You add a new mailbox header to a HeaderSet by calling the HeaderSet's
371
 You add a new mailbox header to a HeaderSet by calling the HeaderSet's
379
 ``addMailboxHeader()`` method.
372
 ``addMailboxHeader()`` method.
433
 
426
 
434
     $to->setAddresses('joe-bloggs@example.org');
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
 .. code-block:: php
432
 .. code-block:: php
440
 
433
 
463
 
456
 
464
 An ID that exists inside an ID header looks more-or-less less like an email
457
 An ID that exists inside an ID header looks more-or-less less like an email
465
 address.  For example, ``<![CDATA[<1234955437.499becad62ec2@example.org>]]>``.
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
 It's easy to add a new ID header to a HeaderSet.  You do this by calling
468
 It's easy to add a new ID header to a HeaderSet.  You do this by calling
476
 the HeaderSet's ``addIdHeader()`` method.
469
 the HeaderSet's ``addIdHeader()`` method.
492
 
485
 
493
     $msgId->setId(time() . '.' . uniqid('thing') . '@example.org');
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
 .. code-block:: php
491
 .. code-block:: php
499
 
492
 
535
 
528
 
536
     $return->setAddress('my-address@example.org');
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
 .. code-block:: php
534
 .. code-block:: php
542
 
535
 
566
 
559
 
567
 To add a header to a MIME entity (such as the message):
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
 * Add the header to the HeaderSet by calling one of the ``add..Header()``
564
 * Add the header to the HeaderSet by calling one of the ``add..Header()``
573
   methods.
565
   methods.
576
 
568
 
577
 .. code-block:: php
569
 .. code-block:: php
578
 
570
 
579
-    //Adding a custom header to a message
571
+    // Adding a custom header to a message
580
     $message = Swift_Message::newInstance();
572
     $message = Swift_Message::newInstance();
581
     $headers = $message->getHeaders();
573
     $headers = $message->getHeaders();
582
     $headers->addTextHeader('X-Mine', 'something here');
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
     $attachment = Swift_Attachment::fromPath('/path/to/doc.pdf');
577
     $attachment = Swift_Attachment::fromPath('/path/to/doc.pdf');
586
     $attachment->getHeaders()->addDateHeader('X-Created-Time', time());
578
     $attachment->getHeaders()->addDateHeader('X-Created-Time', time());
587
 
579
 
588
 Retrieving Headers
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
 To get a header, or several headers from a MIME entity:
586
 To get a header, or several headers from a MIME entity:
595
 
587
 
598
 * Get the header(s) from the HeaderSet by calling either ``get()`` or
590
 * Get the header(s) from the HeaderSet by calling either ``get()`` or
599
   ``getAll()``.
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
 .. note::
598
 .. note::
608
 
599
 
622
 
613
 
623
         $headers = $message->getHeaders();
614
         $headers = $message->getHeaders();
624
 
615
 
625
-        //Get the To: header
616
+        // Get the To: header
626
         $toHeader = $headers->get('To');
617
         $toHeader = $headers->get('To');
627
 
618
 
628
-        //Get all headers named "X-Foo"
619
+        // Get all headers named "X-Foo"
629
         $fooHeaders = $headers->getAll('X-Foo');
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
         $foo = $headers->get('X-Foo', 1);
623
         $foo = $headers->get('X-Foo', 1);
633
 
624
 
634
-        //Get all headers that are present
625
+        // Get all headers that are present
635
         $all = $headers->getAll();
626
         $all = $headers->getAll();
636
 
627
 
637
 Check if a Header Exists
628
 Check if a Header Exists
647
 * Call the HeaderSet's ``has()`` method specifying the header you're looking
638
 * Call the HeaderSet's ``has()`` method specifying the header you're looking
648
   for.
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
 .. note::
643
 .. note::
654
 
644
 
661
 
651
 
662
         $headers = $message->getHeaders();
652
         $headers = $message->getHeaders();
663
 
653
 
664
-        //Check if the To: header exists
654
+        // Check if the To: header exists
665
         if ($headers->has('To')) {
655
         if ($headers->has('To')) {
666
           echo 'To: exists';
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
         if ($headers->has('X-Foo', 1)) {
660
         if ($headers->has('X-Foo', 1)) {
671
           echo 'Second X-Foo header exists';
661
           echo 'Second X-Foo header exists';
672
         }
662
         }
684
 * Call the HeaderSet's ``remove()`` or ``removeAll()`` methods specifying the
674
 * Call the HeaderSet's ``remove()`` or ``removeAll()`` methods specifying the
685
   header you want to remove.
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
 .. note::
681
 .. note::
692
 
682
 
700
 
690
 
701
         $headers = $message->getHeaders();
691
         $headers = $message->getHeaders();
702
 
692
 
703
-        //Remove the Subject: header
693
+        // Remove the Subject: header
704
         $headers->remove('Subject');
694
         $headers->remove('Subject');
705
 
695
 
706
-        //Remove all X-Foo headers
696
+        // Remove all X-Foo headers
707
         $headers->removeAll('X-Foo');
697
         $headers->removeAll('X-Foo');
708
 
698
 
709
-        //Remove only the second X-Foo header
699
+        // Remove only the second X-Foo header
710
         $headers->remove('X-Foo', 1);
700
         $headers->remove('X-Foo', 1);
711
 
701
 
712
 Modifying a Header's Content
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
 To modify an existing header:
710
 To modify an existing header:
721
 
711
 
733
 
723
 
734
     $headers = $message->getHeaders();
724
     $headers = $message->getHeaders();
735
 
725
 
736
-    //Change the Subject: header
726
+    // Change the Subject: header
737
     $subj = $headers->get('Subject');
727
     $subj = $headers->get('Subject');
738
     $subj->setValue('new subject here');
728
     $subj->setValue('new subject here');
739
 
729
 
740
-    //Change the To: header
730
+    // Change the To: header
741
     $to = $headers->get('To');
731
     $to = $headers->get('To');
742
     $to->setNameAddresses(array(
732
     $to->setNameAddresses(array(
743
       'person@example.org' => 'Person',
733
       'person@example.org' => 'Person',
744
       'thing@example.org'
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
     // So here to calls setNameAddresses()
738
     // So here to calls setNameAddresses()
749
     $to->setFieldBodyModel(array(
739
     $to->setFieldBodyModel(array(
750
       'person@example.org' => 'Person',
740
       'person@example.org' => 'Person',

+ 1 - 1
vendor/swiftmailer/doc/including-the-files.rst Parādīt failu

1
 Including Swift Mailer (Autoloading)
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
 ``lib/swift_required.php`` file.
5
 ``lib/swift_required.php`` file.
6
 
6
 
7
 To use Swift Mailer's autoloader:
7
 To use Swift Mailer's autoloader:

+ 20 - 20
vendor/swiftmailer/doc/installing.rst Parādīt failu

7
 Installing from PEAR
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
 installation method is using the PEAR channel.
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
 * Run the command ``pear channel-discover pear.swiftmailer.org``.
15
 * Run the command ``pear channel-discover pear.swiftmailer.org``.
16
 
16
 
48
 
48
 
49
 .. code-block:: bash
49
 .. code-block:: bash
50
 
50
 
51
-    chrisbook:build chris$ ls
51
+    $ ls
52
     Swift-4.0.0-dev.tar.gz
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
     Swift-4.0.0-dev/
54
     Swift-4.0.0-dev/
55
     Swift-4.0.0-dev/lib/
55
     Swift-4.0.0-dev/lib/
56
     Swift-4.0.0-dev/lib/classes/
56
     Swift-4.0.0-dev/lib/classes/
66
     Swift-4.0.0-dev/tests/unit/Swift/Transport/LoadBalancedTransportTest.php
66
     Swift-4.0.0-dev/tests/unit/Swift/Transport/LoadBalancedTransportTest.php
67
     Swift-4.0.0-dev/tests/unit/Swift/Transport/SendmailTransportTest.php
67
     Swift-4.0.0-dev/tests/unit/Swift/Transport/SendmailTransportTest.php
68
     Swift-4.0.0-dev/tests/unit/Swift/Transport/StreamBufferTest.php
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
     CHANGES		LICENSE.GPL	LICENSE.LGPL	README		VERSION		examples	lib		test-suite	tests
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
 Installing from Git
74
 Installing from Git
75
 -------------------
75
 -------------------
111
 
111
 
112
 .. code-block:: bash
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
     Initialized empty Git repository in /Users/chris/source_code/swiftmailer/.git/
116
     Initialized empty Git repository in /Users/chris/source_code/swiftmailer/.git/
117
     remote: Counting objects: 6815, done.
117
     remote: Counting objects: 6815, done.
118
     remote: Compressing objects: 100% (2761/2761), done.
118
     remote: Compressing objects: 100% (2761/2761), done.
120
     Receiving objects: 100% (6815/6815), 4.35 MiB | 162 KiB/s, done.
120
     Receiving objects: 100% (6815/6815), 4.35 MiB | 162 KiB/s, done.
121
     Resolving deltas: 100% (3641/3641), done.
121
     Resolving deltas: 100% (3641/3641), done.
122
     Checking out files: 100% (1847/1847), done.
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
     CHANGES		LICENSE.LGPL	README.git	VERSION		docs		lib		test-suite	util
125
     CHANGES		LICENSE.LGPL	README.git	VERSION		docs		lib		test-suite	util
126
     LICENSE.GPL	README		TODO		build.xml	examples	notes		tests
126
     LICENSE.GPL	README		TODO		build.xml	examples	notes		tests
127
-    chrisbook:swiftmailer chris$
127
+    $
128
 
128
 
129
 Uploading to your Host
129
 Uploading to your Host
130
 ----------------------
130
 ----------------------
133
 use. All other files and directories are support files not needed in
133
 use. All other files and directories are support files not needed in
134
 production.
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
 To upload Swift Mailer:
139
 To upload Swift Mailer:
140
 
140
 
150
 
150
 
151
 .. note::
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
     .. code-block:: bash
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
         building file list ... done
159
         building file list ... done
160
         created directory swiftmailer
160
         created directory swiftmailer
161
         lib/
161
         lib/
174
 
174
 
175
         sent 151692 bytes  received 2974 bytes  5836.45 bytes/sec
175
         sent 151692 bytes  received 2974 bytes  5836.45 bytes/sec
176
         total size is 401405  speedup is 2.60
176
         total size is 401405  speedup is 2.60
177
-        chrisbook:Swift-4.0.0-dev chris$
177
+        $
178
 
178
 
179
 .. _`github`: http://github.com/swiftmailer/swiftmailer
179
 .. _`github`: http://github.com/swiftmailer/swiftmailer
180
 
180
 
181
 Troubleshooting
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
 by ``mbstring`` (``mbstring.func_overload`` set to ``2``). A workaround is to
185
 by ``mbstring`` (``mbstring.func_overload`` set to ``2``). A workaround is to
186
 temporarily change the internal encoding to ``ASCII`` when sending an email:
186
 temporarily change the internal encoding to ``ASCII`` when sending an email:
187
 
187
 
193
       mb_internal_encoding('ASCII');
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
     if (isset($mbEncoding))
198
     if (isset($mbEncoding))
199
     {
199
     {

+ 110 - 122
vendor/swiftmailer/doc/messages.rst Parādīt failu

30
 
30
 
31
     require_once 'lib/swift_required.php';
31
     require_once 'lib/swift_required.php';
32
 
32
 
33
-    //Create the message
33
+    // Create the message
34
     $message = Swift_Message::newInstance()
34
     $message = Swift_Message::newInstance()
35
 
35
 
36
-      //Give the message a subject
36
+      // Give the message a subject
37
       ->setSubject('Your subject')
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
       ->setFrom(array('john@doe.com' => 'John Doe'))
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
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
43
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
44
 
44
 
45
-      //Give it a body
45
+      // Give it a body
46
       ->setBody('Here is the message itself')
46
       ->setBody('Here is the message itself')
47
 
47
 
48
-      //And optionally an alternative body
48
+      // And optionally an alternative body
49
       ->addPart('<q>Here is the message itself</q>', 'text/html')
49
       ->addPart('<q>Here is the message itself</q>', 'text/html')
50
 
50
 
51
-      //Optionally add any attachments
51
+      // Optionally add any attachments
52
       ->attach(Swift_Attachment::fromPath('my-document.pdf'))
52
       ->attach(Swift_Attachment::fromPath('my-document.pdf'))
53
       ;
53
       ;
54
 
54
 
170
 ------------------------------
170
 ------------------------------
171
 
171
 
172
 Rich content can be added to messages in Swift Mailer with relative ease by
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
 Setting the Subject Line
176
 Setting the Subject Line
176
 ~~~~~~~~~~~~~~~~~~~~~~~~
177
 ~~~~~~~~~~~~~~~~~~~~~~~~
177
 
178
 
178
 The subject line, displayed in the recipients' mail client can be set with the
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
 To set the subject of your Message:
182
 To set the subject of your Message:
182
 
183
 
195
 ~~~~~~~~~~~~~~~~~~~~~~~~
196
 ~~~~~~~~~~~~~~~~~~~~~~~~
196
 
197
 
197
 The body of the message -- seen when the user opens the message --
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
 The body of a message is the main part that is read by the user. Often people
202
 The body of a message is the main part that is read by the user. Often people
202
 want to send a message in HTML format (``text/html``), other
203
 want to send a message in HTML format (``text/html``), other
215
 
216
 
216
 * Add any alternative bodies with ``addPart()``.
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
 .. code-block:: php
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
     $message = Swift_Message::newInstance('Subject here', 'My amazing body');  
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
     $message->setBody('My <em>amazing</em> body', 'text/html');
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
     $message->addPart('My amazing body in plain text', 'text/plain');
233
     $message->addPart('My amazing body in plain text', 'text/plain');
233
 
234
 
234
 Attaching Files
235
 Attaching Files
235
 ---------------
236
 ---------------
236
 
237
 
237
 Attachments are downloadable parts of a message and can be added by calling
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
 disk, or you can create attachments on-the-fly.
240
 disk, or you can create attachments on-the-fly.
240
 
241
 
241
 Attachments are actually an interesting area of Swift Mailer and something
242
 Attachments are actually an interesting area of Swift Mailer and something
258
 ~~~~~~~~~~~~~~~~~~~~~~~~
259
 ~~~~~~~~~~~~~~~~~~~~~~~~
259
 
260
 
260
 Files that already exist, either on disk or at a URL can be attached to a
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
 You can attach files that exist locally, or if your PHP installation has
264
 You can attach files that exist locally, or if your PHP installation has
264
 ``allow_url_fopen`` turned on you can attach files from other
265
 ``allow_url_fopen`` turned on you can attach files from other
275
 
276
 
276
 .. code-block:: php
277
 .. code-block:: php
277
 
278
 
278
-    //Create the attachment
279
+    // Create the attachment
279
     // * Note that you can technically leave the content-type parameter out
280
     // * Note that you can technically leave the content-type parameter out
280
     $attachment = Swift_Attachment::fromPath('/path/to/image.jpg', 'image/jpeg');  
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
     $message->attach($attachment);
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
     $message->attach(Swift_Attachment::fromPath('/path/to/image.jpg'));
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
     $message->attach(Swift_Attachment::fromPath('http://site.tld/logo.png'));
292
     $message->attach(Swift_Attachment::fromPath('http://site.tld/logo.png'));
292
 
293
 
293
 Setting the Filename
294
 Setting the Filename
295
 
296
 
296
 Usually you don't need to explicitly set the filename of an attachment because
297
 Usually you don't need to explicitly set the filename of an attachment because
297
 the name of the attached file will be used by default, but if you want to set
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
 To change the filename of an attachment:
301
 To change the filename of an attachment:
301
 
302
 
306
 
307
 
307
 .. code-block:: php
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
     $attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
311
     $attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
311
       ->setFilename('cool.jpg');
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
     $message->attach(
316
     $message->attach(
316
       Swift_Attachment::fromPath('/path/to/image.jpg')->setFilename('cool.jpg')
317
       Swift_Attachment::fromPath('/path/to/image.jpg')->setFilename('cool.jpg')
317
     );
318
     );
321
 
322
 
322
 Files that are generated at runtime, such as PDF documents or images created
323
 Files that are generated at runtime, such as PDF documents or images created
323
 via GD can be attached directly to a message without writing them out to disk.
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
 To attach dynamically created content:
327
 To attach dynamically created content:
327
 
328
 
342
 
343
 
343
     .. code-block:: php
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
         $data = create_my_pdf_data();
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
         $message->attach($attachment);
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
         $attachment = Swift_Attachment::newInstance()
357
         $attachment = Swift_Attachment::newInstance()
357
           ->setFilename('my-file.pdf')
358
           ->setFilename('my-file.pdf')
358
           ->setContentType('application/pdf')
359
           ->setContentType('application/pdf')
364
 
365
 
365
 Attachments just appear as files that can be saved to the Desktop if desired.
366
 Attachments just appear as files that can be saved to the Desktop if desired.
366
 You can make attachment appear inline where possible by using the
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
 To make an attachment appear inline:
370
 To make an attachment appear inline:
370
 
371
 
381
 
382
 
382
     .. code-block:: php
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
         $attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
386
         $attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
386
           ->setDisposition('inline');
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
         $message->attach(
391
         $message->attach(
391
           Swift_Attachment::fromPath('/path/to/image.jpg')->setDisposition('inline')
392
           Swift_Attachment::fromPath('/path/to/image.jpg')->setDisposition('inline')
392
         );
393
         );
424
 ........................
425
 ........................
425
 
426
 
426
 Files that already exist, either on disk or at a URL can be embedded in a
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
 You can embed files that exist locally, or if your PHP installation has
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
 To embed an existing file:
433
 To embed an existing file:
434
 
434
 
451
 
451
 
452
     .. code-block:: php
452
     .. code-block:: php
453
 
453
 
454
-        //Create the message
454
+        // Create the message
455
         $message = Swift_Message::newInstance('My subject');
455
         $message = Swift_Message::newInstance('My subject');
456
 
456
 
457
-        //Set the body
457
+        // Set the body
458
         $message->setBody(
458
         $message->setBody(
459
         '<html>' .
459
         '<html>' .
460
         ' <head></head>' .
460
         ' <head></head>' .
461
         ' <body>' .
461
         ' <body>' .
462
-        '  Here is an image <img src="' . //Embed the file
462
+        '  Here is an image <img src="' . // Embed the file
463
              $message->embed(Swift_Image::fromPath('image.png')) .
463
              $message->embed(Swift_Image::fromPath('image.png')) .
464
            '" alt="Image" />' .
464
            '" alt="Image" />' .
465
         '  Rest of message' .
465
         '  Rest of message' .
466
         ' </body>' .
466
         ' </body>' .
467
         '</html>',
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
         $message->setBody(
472
         $message->setBody(
473
         '<html>' .
473
         '<html>' .
474
         ' <head></head>' .
474
         ' <head></head>' .
495
         '  Rest of message' .
495
         '  Rest of message' .
496
         ' </body>' .
496
         ' </body>' .
497
         '</html>',
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
 Embedding Dynamic Content
501
 Embedding Dynamic Content
503
 
503
 
504
 Images that are generated at runtime, such as images created via GD can be
504
 Images that are generated at runtime, such as images created via GD can be
505
 embedded directly to a message without writing them out to disk. Use the
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
 To embed dynamically created content:
508
 To embed dynamically created content:
509
 
509
 
527
 
527
 
528
     .. code-block:: php
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
         $img_data = create_my_image_data();
531
         $img_data = create_my_image_data();
532
 
532
 
533
         //Create the message
533
         //Create the message
538
         '<html>' .
538
         '<html>' .
539
         ' <head></head>' .
539
         ' <head></head>' .
540
         ' <body>' .
540
         ' <body>' .
541
-        '  Here is an image <img src="' . //Embed the file
541
+        '  Here is an image <img src="' . // Embed the file
542
              $message->embed(Swift_Image::newInstance($img_data, 'image.jpg', 'image/jpeg')) .
542
              $message->embed(Swift_Image::newInstance($img_data, 'image.jpg', 'image/jpeg')) .
543
            '" alt="Image" />' .
543
            '" alt="Image" />' .
544
         '  Rest of message' .
544
         '  Rest of message' .
545
         ' </body>' .
545
         ' </body>' .
546
         '</html>',
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
         '  Rest of message' .
560
         '  Rest of message' .
561
         ' </body>' .
561
         ' </body>' .
562
         '</html>',
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
 Adding Recipients to Your Message
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
 Message recipients are one of three types:
573
 Message recipients are one of three types:
574
 
574
 
584
 
584
 
585
 .. sidebar:: Syntax for Addresses
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
     .. code-block:: php
590
     .. code-block:: php
591
 
591
 
604
          $message->setTo(array('some@address.tld', 'other@address.tld'));
604
          $message->setTo(array('some@address.tld', 'other@address.tld'));
605
 
605
 
606
     You can mix personalized (addresses with a name) and non-personalized
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
     .. code-block:: php
610
     .. code-block:: php
611
 
611
 
612
          $message->setTo(array(
612
          $message->setTo(array(
613
            'recipient-with-name@example.org' => 'Recipient Name One',
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
            'named-recipient@example.org' => 'Recipient Name Two'
615
            'named-recipient@example.org' => 'Recipient Name Two'
616
          ));
616
          ));
617
 
617
 
622
 ``setTo()`` or ``addTo()`` methods of the message.
622
 ``setTo()`` or ``addTo()`` methods of the message.
623
 
623
 
624
 To set ``To:`` recipients, create the message object using either
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
 ``addTo()`` method to iteratively add recipients.
627
 ``addTo()`` method to iteratively add recipients.
629
 
628
 
630
 The ``setTo()`` method accepts input in various formats as described earlier in
629
 The ``setTo()`` method accepts input in various formats as described earlier in
643
 
642
 
644
     .. code-block:: php
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
         $message->setTo(array(
646
         $message->setTo(array(
648
           'person1@example.org',
647
           'person1@example.org',
649
           'person2@otherdomain.org' => 'Person 2 Name',
648
           'person2@otherdomain.org' => 'Person 2 Name',
652
           'person5@example.org' => 'Person 5 Name'
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
         $message->addTo('person1@example.org');
655
         $message->addTo('person1@example.org');
657
         $message->addTo('person2@example.org', 'Person 2 Name');
656
         $message->addTo('person2@example.org', 'Person 2 Name');
658
 
657
 
659
 Setting ``Cc:`` Recipients
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
 To set ``Cc:`` recipients, create the message object using either
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
 ``addCc()`` method to iteratively add recipients.
667
 ``addCc()`` method to iteratively add recipients.
670
 
668
 
671
 The ``setCc()`` method accepts input in various formats as described earlier in
669
 The ``setCc()`` method accepts input in various formats as described earlier in
684
 
682
 
685
     .. code-block:: php
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
         $message->setCc(array(
686
         $message->setCc(array(
689
           'person1@example.org',
687
           'person1@example.org',
690
           'person2@otherdomain.org' => 'Person 2 Name',
688
           'person2@otherdomain.org' => 'Person 2 Name',
693
           'person5@example.org' => 'Person 5 Name'
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
         $message->addCc('person1@example.org');
695
         $message->addCc('person1@example.org');
698
         $message->addCc('person2@example.org', 'Person 2 Name');
696
         $message->addCc('person2@example.org', 'Person 2 Name');
699
 
697
 
700
 Setting ``Bcc:`` Recipients
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
 ``setBcc()`` method with a complete array of addresses, or use
706
 ``setBcc()`` method with a complete array of addresses, or use
711
 the ``addBcc()`` method to iteratively add recipients.
707
 the ``addBcc()`` method to iteratively add recipients.
712
 
708
 
715
 first being the email address and the second optional parameter being the name
711
 first being the email address and the second optional parameter being the name
716
 of the recipient.
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
 .. note::
718
 .. note::
723
 
719
 
727
 
723
 
728
     .. code-block:: php
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
         $message->setBcc(array(
727
         $message->setBcc(array(
732
           'person1@example.org',
728
           'person1@example.org',
733
           'person2@otherdomain.org' => 'Person 2 Name',
729
           'person2@otherdomain.org' => 'Person 2 Name',
736
           'person5@example.org' => 'Person 5 Name'
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
         $message->addBcc('person1@example.org');
736
         $message->addBcc('person1@example.org');
741
         $message->addBcc('person2@example.org', 'Person 2 Name');
737
         $message->addBcc('person2@example.org', 'Person 2 Name');
742
 
738
 
755
 
751
 
756
 * ``Return-Path:`` -- the address where bounces should go to (optional)
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
 Setting the ``From:`` Address
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
 What most people probably don't realise is that you can have more than one
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
 To set the ``From:`` address(es):
773
 To set the ``From:`` address(es):
781
 
774
 
791
 
784
 
792
     .. code-block:: php
785
     .. code-block:: php
793
 
786
 
794
-        //Set a single From: address
787
+        // Set a single From: address
795
         $message->setFrom('your@address.tld');
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
         $message->setFrom(array('your@address.tld' => 'Your Name'));
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
         $message->setFrom(array(
794
         $message->setFrom(array(
802
           'person1@example.org' => 'Sender One',
795
           'person1@example.org' => 'Sender One',
803
           'person2@example.org' => 'Sender Two'
796
           'person2@example.org' => 'Sender Two'
806
 Setting the ``Sender:`` Address
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
 To set the ``Sender:`` address:
805
 To set the ``Sender:`` address:
813
 
806
 
814
 * Call the ``setSender()`` method on the Message.
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
 .. note::
814
 .. note::
823
 
815
 
878
 -------------------------
870
 -------------------------
879
 
871
 
880
 The character set of the message (and it's MIME parts) is set with the
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
 Swift Mailer will default to the UTF-8 character set unless otherwise
876
 Swift Mailer will default to the UTF-8 character set unless otherwise
885
 overridden. UTF-8 will work in most instances since it includes all of the
877
 overridden. UTF-8 will work in most instances since it includes all of the
891
 
883
 
892
 There are two places in Swift Mailer where you can change the character set:
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
 * On each individual message and/or MIME part
888
 * On each individual message and/or MIME part
897
 
889
 
904
 
896
 
905
    .. code-block:: php
897
    .. code-block:: php
906
 
898
 
907
-    //Approach 1: Change the global setting (suggested)
899
+    // Approach 1: Change the global setting (suggested)
908
     Swift_Preferences::getInstance()->setCharset('iso-8859-2');
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
     $message = Swift_Message::newInstance()
903
     $message = Swift_Message::newInstance()
912
       ->setCharset('iso-8859-2');
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
     $message->setBody('My body', 'text/html', 'iso-8859-2');
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
     $message->addPart('My part', 'text/plain', 'iso-8859-2');
910
     $message->addPart('My part', 'text/plain', 'iso-8859-2');
919
 
911
 
920
 Setting the Line Length
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
 Swift Mailer defaults to using 78 characters per line in a message. This is
918
 Swift Mailer defaults to using 78 characters per line in a message. This is
928
 done for historical reasons and so that the message can be easily viewed in
919
 done for historical reasons and so that the message can be easily viewed in
949
 Setting the Message Priority
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
 The priority of a message is an indication to the recipient what significance
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
 * Highest
950
 * Highest
963
 * High
951
 * High
972
 
960
 
973
 .. code-block:: php
961
 .. code-block:: php
974
 
962
 
975
-    //Indicate "High" priority
963
+    // Indicate "High" priority
976
     $message->setPriority(2);
964
     $message->setPriority(2);

+ 36 - 40
vendor/swiftmailer/doc/plugins.rst Parādīt failu

34
 Using the AntiFlood Plugin
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
 To use the AntiFlood plugin:
41
 To use the AntiFlood plugin:
43
 
42
 
59
 
58
 
60
     require_once 'lib/swift_required.php';
59
     require_once 'lib/swift_required.php';
61
 
60
 
62
-    //Create the Mailer using any Transport
61
+    // Create the Mailer using any Transport
63
     $mailer = Swift_Mailer::newInstance(
62
     $mailer = Swift_Mailer::newInstance(
64
       Swift_SmtpTransport::newInstance('smtp.example.org', 25)
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
     $mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100));
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
     $mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 30));
70
     $mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 30));
72
 
71
 
73
-    //Continue sending as normal
72
+    // Continue sending as normal
74
     for ($lotsOfRecipients as $recipient) {
73
     for ($lotsOfRecipients as $recipient) {
75
       ...
74
       ...
76
 
75
 
96
 Using the Throttler Plugin
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
 To use the Throttler plugin:
102
 To use the Throttler plugin:
104
 
103
 
112
 
111
 
113
 * Continue using Swift Mailer to send messages as normal.
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
 .. code-block:: php
118
 .. code-block:: php
121
 
119
 
122
     require_once 'lib/swift_required.php';
120
     require_once 'lib/swift_required.php';
123
 
121
 
124
-    //Create the Mailer using any Transport
122
+    // Create the Mailer using any Transport
125
     $mailer = Swift_Mailer::newInstance(
123
     $mailer = Swift_Mailer::newInstance(
126
       Swift_SmtpTransport::newInstance('smtp.example.org', 25)
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
     $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
128
     $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
131
       100, Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE
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
     $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
133
     $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
136
       1024 * 1024 * 10, Swift_Plugins_ThrottlerPlugin::BYTES_PER_MINUTE
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
     for ($lotsOfRecipients as $recipient) {
138
     for ($lotsOfRecipients as $recipient) {
141
       ...
139
       ...
142
 
140
 
175
 Using the Logger Plugin
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
 To use the Logger plugin:
180
 To use the Logger plugin:
183
 
181
 
204
 
202
 
205
     require_once 'lib/swift_required.php';
203
     require_once 'lib/swift_required.php';
206
 
204
 
207
-    //Create the Mailer using any Transport
205
+    // Create the Mailer using any Transport
208
     $mailer = Swift_Mailer::newInstance(
206
     $mailer = Swift_Mailer::newInstance(
209
      Swift_SmtpTransport::newInstance('smtp.example.org', 25)
207
      Swift_SmtpTransport::newInstance('smtp.example.org', 25)
210
     );
208
     );
211
 
209
 
212
-    //To use the ArrayLogger
210
+    // To use the ArrayLogger
213
     $logger = new Swift_Plugins_Loggers_ArrayLogger();
211
     $logger = new Swift_Plugins_Loggers_ArrayLogger();
214
     $mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));
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
     $logger = new Swift_Plugins_Loggers_EchoLogger();
215
     $logger = new Swift_Plugins_Loggers_EchoLogger();
218
     $mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));
216
     $mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));
219
 
217
 
220
-    //Continue sending as normal
218
+    // Continue sending as normal
221
     for ($lotsOfRecipients as $recipient) {
219
     for ($lotsOfRecipients as $recipient) {
222
      ...
220
      ...
223
 
221
 
252
 Using the Decorator Plugin
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
 First create an associative array of replacements based on the email addresses
257
 First create an associative array of replacements based on the email addresses
260
 you'll be sending the message to.
258
 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
 .. code-block:: php
281
 .. code-block:: php
284
 
282
 
304
     }
302
     }
305
 
303
 
306
 When you send this message to each of your recipients listed in your
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
 .. code-block:: text
309
 .. code-block:: text
312
 
310
 
339
 implementation.
337
 implementation.
340
 
338
 
341
 Providing your own replacements lookup implementation for the Decorator is
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
 The Replacements interface is very simple to implement since it has just one
343
 The Replacements interface is very simple to implement since it has just one
347
 method: ``getReplacementsFor($address)``.
344
 method: ``getReplacementsFor($address)``.
378
 
375
 
379
     $mailer->registerPlugin($decorator);
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
 .. note::
381
 .. note::
386
 
382
 

+ 84 - 94
vendor/swiftmailer/doc/sending.rst Parādīt failu

10
 To send a Message:
10
 To send a Message:
11
 
11
 
12
 * Create a Transport from one of the provided Transports --
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
 * Create an instance of the ``Swift_Mailer`` class, using the Transport as
16
 * Create an instance of the ``Swift_Mailer`` class, using the Transport as
17
   it's constructor parameter.
17
   it's constructor parameter.
28
     following PHP script: ``<?php echo function_exists('proc_open') ? "Yep,
28
     following PHP script: ``<?php echo function_exists('proc_open') ? "Yep,
29
     that will work" : "Sorry, that won't work"; ``
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
 recipients are delivered to successfully then the value 5 will be returned.
36
 recipients are delivered to successfully then the value 5 will be returned.
38
 
37
 
39
 .. code-block:: php
38
 .. code-block:: php
40
 
39
 
41
     require_once 'lib/swift_required.php';
40
     require_once 'lib/swift_required.php';
42
 
41
 
43
-    //Create the Transport
42
+    // Create the Transport
44
     $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
43
     $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
45
       ->setUsername('your username')
44
       ->setUsername('your username')
46
       ->setPassword('your password')
45
       ->setPassword('your password')
49
     /*
48
     /*
50
     You could alternatively use a different transport such as Sendmail or Mail:
49
     You could alternatively use a different transport such as Sendmail or Mail:
51
 
50
 
52
-    //Sendmail
51
+    // Sendmail
53
     $transport = Swift_SendmailTransport::newInstance('/usr/sbin/sendmail -bs');
52
     $transport = Swift_SendmailTransport::newInstance('/usr/sbin/sendmail -bs');
54
 
53
 
55
-    //Mail
54
+    // Mail
56
     $transport = Swift_MailTransport::newInstance();
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
     $mailer = Swift_Mailer::newInstance($transport);
59
     $mailer = Swift_Mailer::newInstance($transport);
61
 
60
 
62
-    //Create a message
61
+    // Create a message
63
     $message = Swift_Message::newInstance('Wonderful Subject')
62
     $message = Swift_Message::newInstance('Wonderful Subject')
64
       ->setFrom(array('john@doe.com' => 'John Doe'))
63
       ->setFrom(array('john@doe.com' => 'John Doe'))
65
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
64
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
66
       ->setBody('Here is the message itself')
65
       ->setBody('Here is the message itself')
67
       ;
66
       ;
68
   
67
   
69
-    //Send the message
68
+    // Send the message
70
     $result = $mailer->send($message);
69
     $result = $mailer->send($message);
71
 
70
 
72
 Transport Types
71
 Transport Types
83
 The SMTP Transport
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
 The SMTP Transport, ``Swift_SmtpTransport`` is without doubt the most commonly
88
 The SMTP Transport, ``Swift_SmtpTransport`` is without doubt the most commonly
90
 used Transport because it will work on 99% of web servers (I just made that
89
 used Transport because it will work on 99% of web servers (I just made that
109
 within your application and adjust the settings accordingly if the code is
108
 within your application and adjust the settings accordingly if the code is
110
 moved or if the SMTP server is changed.
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
 Using the SMTP Transport
114
 Using the SMTP Transport
118
 ^^^^^^^^^^^^^^^^^^^^^^^^
115
 ^^^^^^^^^^^^^^^^^^^^^^^^
139
 
136
 
140
     require_once 'lib/swift_required.php';
137
     require_once 'lib/swift_required.php';
141
 
138
 
142
-    //Create the Transport
139
+    // Create the Transport
143
     $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25);
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
     $mailer = Swift_Mailer::newInstance($transport);
143
     $mailer = Swift_Mailer::newInstance($transport);
147
 
144
 
148
     /*
145
     /*
173
 
170
 
174
 .. note::
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
     appropriate OpenSSL transports wrappers. You can check if "tls" and/or
174
     appropriate OpenSSL transports wrappers. You can check if "tls" and/or
178
     "ssl" are present in your PHP installation by using the PHP function
175
     "ssl" are present in your PHP installation by using the PHP function
179
     ``stream_get_transports()``
176
     ``stream_get_transports()``
182
 
179
 
183
         require_once 'lib/swift_required.php';
180
         require_once 'lib/swift_required.php';
184
 
181
 
185
-        //Create the Transport
182
+        // Create the Transport
186
         $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 587, 'ssl');
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
         $mailer = Swift_Mailer::newInstance($transport);
186
         $mailer = Swift_Mailer::newInstance($transport);
190
 
187
 
191
         /*
188
         /*
202
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203
 
200
 
204
 Some servers require authentication. You can provide a username and password
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
 To use a username and password with the SMTP Transport:
204
 To use a username and password with the SMTP Transport:
208
 
205
 
213
 Your username and password will be used to authenticate upon first connect
210
 Your username and password will be used to authenticate upon first connect
214
 when ``send()`` are first used on the Mailer.
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
 .. note::
216
 .. note::
220
 
217
 
226
 
223
 
227
         require_once 'lib/swift_required.php';
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
         $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
227
         $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
231
           ->setUsername('username')
228
           ->setUsername('username')
232
           ->setPassword('password')
229
           ->setPassword('password')
233
           ;
230
           ;
234
 
231
 
235
-        //Create the Mailer using your created Transport
232
+        // Create the Mailer using your created Transport
236
         $mailer = Swift_Mailer::newInstance($transport);
233
         $mailer = Swift_Mailer::newInstance($transport);
237
 
234
 
238
 The Sendmail Transport
235
 The Sendmail Transport
241
 The Sendmail Transport sends messages by communicating with a locally
238
 The Sendmail Transport sends messages by communicating with a locally
242
 installed MTA -- such as ``sendmail``.
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
 messages to disk before sending them.
245
 messages to disk before sending them.
250
 
246
 
251
 The Transport is named the Sendmail Transport for historical reasons
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
 It's a common misconception that because the Sendmail Transport returns a
253
 It's a common misconception that because the Sendmail Transport returns a
258
 result very quickly it must therefore deliver messages to recipients quickly
254
 result very quickly it must therefore deliver messages to recipients quickly
263
 
259
 
264
 The Sendmail Transport has the potential to be just as smart of the SMTP
260
 The Sendmail Transport has the potential to be just as smart of the SMTP
265
 Transport when it comes to notifying Swift Mailer about which recipients were
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
 You can run the Sendmail Transport in two different modes specified by command
267
 You can run the Sendmail Transport in two different modes specified by command
272
 line flags:
268
 line flags:
277
 * "``-t``" runs in piped mode with no feedback, but theoretically faster,
273
 * "``-t``" runs in piped mode with no feedback, but theoretically faster,
278
   though not advised
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
 Using the Sendmail Transport
281
 Using the Sendmail Transport
287
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
288
 
283
 
289
 To use the Sendmail Transport you simply need to call
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
 You specify the entire command as a parameter (i.e. including the command line
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
 .. note::
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
 To use the Sendmail Transport:
300
 To use the Sendmail Transport:
309
 
301
 
321
 
313
 
322
     require_once 'lib/swift_required.php';
314
     require_once 'lib/swift_required.php';
323
 
315
 
324
-    //Create the Transport
316
+    // Create the Transport
325
     $transport = Swift_SendmailTransport::newInstance('/usr/sbin/exim -bs');
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
     $mailer = Swift_Mailer::newInstance($transport);
320
     $mailer = Swift_Mailer::newInstance($transport);
329
 
321
 
330
 The Mail Transport
322
 The Mail Transport
333
 The Mail Transport sends messages by delegating to PHP's internal
325
 The Mail Transport sends messages by delegating to PHP's internal
334
 ``mail()`` function.
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
 Serious drawbacks when using this Transport are:
343
 Serious drawbacks when using this Transport are:
353
 
344
 
363
 ^^^^^^^^^^^^^^^^^^^^^^^^
354
 ^^^^^^^^^^^^^^^^^^^^^^^^
364
 
355
 
365
 To use the Mail Transport you simply need to call
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
 To use the Mail Transport:
360
 To use the Mail Transport:
370
 
361
 
386
 
377
 
387
         require_once 'lib/swift_required.php';
378
         require_once 'lib/swift_required.php';
388
 
379
 
389
-        //Create the Transport
380
+        // Create the Transport
390
         $transport = Swift_MailTransport::newInstance();
381
         $transport = Swift_MailTransport::newInstance();
391
 
382
 
392
-        //Create the Mailer using your created Transport
383
+        // Create the Mailer using your created Transport
393
         $mailer = Swift_Mailer::newInstance($transport);
384
         $mailer = Swift_Mailer::newInstance($transport);
394
 
385
 
395
 Available Methods for Sending Messages
386
 Available Methods for Sending Messages
409
 
400
 
410
 .. note::
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
 Using the ``send()`` Method
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
 To send a Message with ``send()``:
413
 To send a Message with ``send()``:
423
 
414
 
436
 client. An integer is returned which includes the number of successful
427
 client. An integer is returned which includes the number of successful
437
 recipients. If none of the recipients could be sent to then zero will be
428
 recipients. If none of the recipients could be sent to then zero will be
438
 returned, which equates to a boolean ``false``. If you set two
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
 .. code-block:: php
433
 .. code-block:: php
444
 
434
 
445
     require_once 'lib/swift_required.php';
435
     require_once 'lib/swift_required.php';
446
 
436
 
447
-    //Create the Transport
437
+    // Create the Transport
448
     $transport = Swift_SmtpTransport::newInstance('localhost', 25);
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
     $mailer = Swift_Mailer::newInstance($transport);
441
     $mailer = Swift_Mailer::newInstance($transport);
452
 
442
 
453
-    //Create a message
443
+    // Create a message
454
     $message = Swift_Message::newInstance('Wonderful Subject')
444
     $message = Swift_Message::newInstance('Wonderful Subject')
455
       ->setFrom(array('john@doe.com' => 'John Doe'))
445
       ->setFrom(array('john@doe.com' => 'John Doe'))
456
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
446
       ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
457
       ->setBody('Here is the message itself')
447
       ->setBody('Here is the message itself')
458
       ;
448
       ;
459
   
449
   
460
-    //Send the message
450
+    // Send the message
461
     $numSent = $mailer->send($message);
451
     $numSent = $mailer->send($message);
462
 
452
 
463
     printf("Sent %d messages\n", $numSent);
453
     printf("Sent %d messages\n", $numSent);
507
 
497
 
508
         require_once 'lib/swift_required.php';
498
         require_once 'lib/swift_required.php';
509
 
499
 
510
-        //Create the Transport
500
+        // Create the Transport
511
         $transport = Swift_SmtpTransport::newInstance('localhost', 25);
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
         $mailer = Swift_Mailer::newInstance($transport);
504
         $mailer = Swift_Mailer::newInstance($transport);
515
 
505
 
516
-        //Create a message
506
+        // Create a message
517
         $message = Swift_Message::newInstance('Wonderful Subject')
507
         $message = Swift_Message::newInstance('Wonderful Subject')
518
           ->setFrom(array('john@doe.com' => 'John Doe'))
508
           ->setFrom(array('john@doe.com' => 'John Doe'))
519
           ->setBody('Here is the message itself')
509
           ->setBody('Here is the message itself')
520
           ;
510
           ;
521
 
511
 
522
-        //Send the message
512
+        // Send the message
523
         $failedRecipients = array();
513
         $failedRecipients = array();
524
         $numSent = 0;
514
         $numSent = 0;
525
         $to = array('receiver@domain.org', 'other@domain.org' => 'A name');
515
         $to = array('receiver@domain.org', 'other@domain.org' => 'A name');
586
           ->setBody( ... )
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
         if (!$mailer->send($message, $failures))
580
         if (!$mailer->send($message, $failures))
591
         {
581
         {
592
           echo "Failures:";
582
           echo "Failures:";

+ 10 - 8
vendor/swiftmailer/lib/classes/Swift/FileSpool.php Parādīt failu

93
       /* We try an exclusive creation of the file
93
       /* We try an exclusive creation of the file
94
        * This is an atomic operation, it avoid locking mechanism
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
         /* The file allready exists, we try a longer fileName
108
         /* The file allready exists, we try a longer fileName
107
          */
109
          */

+ 8 - 0
vendor/swiftmailer/lib/classes/Swift/MemorySpool.php Parādīt failu

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

+ 2 - 0
vendor/swiftmailer/lib/classes/Swift/Spool.php Parādīt failu

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

+ 2 - 2
vendor/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php Parādīt failu

46
   {
46
   {
47
     if (!ini_get('safe_mode'))
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
     else
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 Parādīt failu

260
     {
260
     {
261
     	$options['socket']['bindto']=$this->_params['sourceIp'].':0';
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
       throw new Swift_TransportException(
266
       throw new Swift_TransportException(
266
         'Connection could not be established with host ' . $this->_params['host'] .
267
         'Connection could not be established with host ' . $this->_params['host'] .

+ 1 - 0
vendor/symfony/.travis.yml Parādīt failu

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

+ 36 - 0
vendor/symfony/CHANGELOG-2.0.md Parādīt failu

7
 To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
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
 To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v2.0.0...v2.0.1
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
 * 2.0.8 (2011-12-26)
46
 * 2.0.8 (2011-12-26)
11
 
47
 
12
  * adea589: [Twig] made code compatible with Twig 1.5
48
  * adea589: [Twig] made code compatible with Twig 1.5

+ 121 - 95
vendor/symfony/CONTRIBUTORS.md Parādīt failu

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

+ 3 - 1
vendor/symfony/check_cs Parādīt failu

94
     }
94
     }
95
 
95
 
96
     // [Structure] elseif, not else if
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
     if ($new != $old) {
101
     if ($new != $old) {
100
         $count++;
102
         $count++;

+ 1 - 2
vendor/symfony/composer.json Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php Parādīt failu

185
             } else {
185
             } else {
186
                 // Otherwise expect a __toString() method in the entity
186
                 // Otherwise expect a __toString() method in the entity
187
                 if (!method_exists($entity, '__toString')) {
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
                 $value = (string) $entity;
191
                 $value = (string) $entity;

+ 0 - 1
vendor/symfony/src/Symfony/Bridge/Doctrine/composer.json Parādīt failu

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

+ 0 - 1
vendor/symfony/src/Symfony/Bridge/Monolog/composer.json Parādīt failu

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

+ 0 - 1
vendor/symfony/src/Symfony/Bridge/Swiftmailer/composer.json Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bridge/Twig/Extension/FormExtension.php Parādīt failu

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

+ 1 - 2
vendor/symfony/src/Symfony/Bridge/Twig/composer.json Parādīt failu

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

+ 0 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineAbstractBundle/composer.json Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php Parādīt failu

31
         $this
31
         $this
32
             ->setName('doctrine:generate:entities')
32
             ->setName('doctrine:generate:entities')
33
             ->setAliases(array('generate:doctrine:entities'))
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
             ->addArgument('name', InputArgument::REQUIRED, 'A bundle name, a namespace, or a class name')
35
             ->addArgument('name', InputArgument::REQUIRED, 'A bundle name, a namespace, or a class name')
36
             ->addOption('path', null, InputOption::VALUE_REQUIRED, 'The path where to generate entities when it cannot be guessed')
36
             ->addOption('path', null, InputOption::VALUE_REQUIRED, 'The path where to generate entities when it cannot be guessed')
37
             ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Do not backup existing entities files.')
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 Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/InfoDoctrineCommand.php Parādīt failu

28
         $this
28
         $this
29
             ->setName('doctrine:mapping:info')
29
             ->setName('doctrine:mapping:info')
30
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
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
             ->setHelp(<<<EOT
32
             ->setHelp(<<<EOT
33
 The <info>doctrine:mapping:info</info> shows basic information about which
33
 The <info>doctrine:mapping:info</info> shows basic information about which
34
 entities exist and possibly if their mapping information contains errors or
34
 entities exist and possibly if their mapping information contains errors or

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearMetadataCacheDoctrineCommand.php Parādīt failu

30
 
30
 
31
         $this
31
         $this
32
             ->setName('doctrine:cache:clear-metadata')
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
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
34
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
35
             ->setHelp(<<<EOT
35
             ->setHelp(<<<EOT
36
 The <info>doctrine:cache:clear-metadata</info> command clears all metadata
36
 The <info>doctrine:cache:clear-metadata</info> command clears all metadata

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearQueryCacheDoctrineCommand.php Parādīt failu

30
 
30
 
31
         $this
31
         $this
32
             ->setName('doctrine:cache:clear-query')
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
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
34
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
35
             ->setHelp(<<<EOT
35
             ->setHelp(<<<EOT
36
 The <info>doctrine:cache:clear-query</info> command clears all query cache for
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 Parādīt failu

30
 
30
 
31
         $this
31
         $this
32
             ->setName('doctrine:cache:clear-result')
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
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
34
             ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
35
             ->setHelp(<<<EOT
35
             ->setHelp(<<<EOT
36
 The <info>doctrine:cache:clear-result</info> command clears all result cache
36
 The <info>doctrine:cache:clear-result</info> command clears all result cache

+ 2 - 2
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php Parādīt failu

42
         if ($this->container->hasParameter('doctrine.orm.proxy_namespace')) {
42
         if ($this->container->hasParameter('doctrine.orm.proxy_namespace')) {
43
             $namespace = $this->container->getParameter('doctrine.orm.proxy_namespace');
43
             $namespace = $this->container->getParameter('doctrine.orm.proxy_namespace');
44
             $dir = $this->container->getParameter('doctrine.orm.proxy_dir');
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
                 if (0 === strpos($class, $namespace)) {
48
                 if (0 === strpos($class, $namespace)) {
49
                     $className = substr($class, strlen($namespace) +1);
49
                     $className = substr($class, strlen($namespace) +1);
50
                     $file = $dir.DIRECTORY_SEPARATOR.$className.'.php';
50
                     $file = $dir.DIRECTORY_SEPARATOR.$className.'.php';

+ 4 - 4
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php Parādīt failu

75
 
75
 
76
         $all = $metadata->getMetadata();
76
         $all = $metadata->getMetadata();
77
         if (class_exists($class)) {
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
             $metadata->setNamespace($r->getNamespacename());
80
             $metadata->setNamespace($r->getNamespacename());
81
         } elseif (!$path) {
81
         } elseif (!$path) {
82
             throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $class));
82
             throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $class));
104
 
104
 
105
         $all = $metadata->getMetadata();
105
         $all = $metadata->getMetadata();
106
         if (class_exists($all[0]->name)) {
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
         } elseif (!$path) {
109
         } elseif (!$path) {
110
             throw new \RuntimeException(sprintf('Unable to determine where to save the "%s" class (use the --path option).', $all[0]->name));
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 Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php Parādīt failu

35
                 new InputArgument('target', InputArgument::REQUIRED, 'The target directory (usually "web")'),
35
                 new InputArgument('target', InputArgument::REQUIRED, 'The target directory (usually "web")'),
36
             ))
36
             ))
37
             ->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlinks the assets instead of copying it')
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
             ->setHelp(<<<EOT
39
             ->setHelp(<<<EOT
40
 The <info>assets:install</info> command installs bundle assets into a given
40
 The <info>assets:install</info> command installs bundle assets into a given
41
 directory (e.g. the web directory).
41
 directory (e.g. the web directory).

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php Parādīt failu

37
             ->setDefinition(array(
37
             ->setDefinition(array(
38
                 new InputOption('no-warmup', '', InputOption::VALUE_NONE, 'Do not warm up the cache'),
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
             ->setHelp(<<<EOF
41
             ->setHelp(<<<EOF
42
 The <info>cache:clear</info> command clears the application cache for a given environment
42
 The <info>cache:clear</info> command clears the application cache for a given environment
43
 and debug mode:
43
 and debug mode:

+ 2 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php Parādīt failu

554
 
554
 
555
     private function getValidatorXmlMappingFiles(ContainerBuilder $container)
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
         $container->addResource(new FileResource($files[0]));
559
         $container->addResource(new FileResource($files[0]));
559
 
560
 
560
         foreach ($container->getParameter('kernel.bundles') as $bundle) {
561
         foreach ($container->getParameter('kernel.bundles') as $bundle) {

+ 1 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php Parādīt failu

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

+ 1 - 1
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml Parādīt failu

7
     <parameters>
7
     <parameters>
8
         <parameter key="event_dispatcher.class">Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher</parameter>
8
         <parameter key="event_dispatcher.class">Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher</parameter>
9
         <parameter key="http_kernel.class">Symfony\Bundle\FrameworkBundle\HttpKernel</parameter>
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
         <parameter key="cache_warmer.class">Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate</parameter>
11
         <parameter key="cache_warmer.class">Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate</parameter>
12
         <parameter key="file_locator.class">Symfony\Component\HttpKernel\Config\FileLocator</parameter>
12
         <parameter key="file_locator.class">Symfony\Component\HttpKernel\Config\FileLocator</parameter>
13
     </parameters>
13
     </parameters>

+ 4 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.ca.xliff Parādīt failu

162
                 <source>This value is not a valid country</source>
162
                 <source>This value is not a valid country</source>
163
                 <target>Aquest valor no és un país vàlid</target>
163
                 <target>Aquest valor no és un país vàlid</target>
164
             </trans-unit>
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
         </body>
169
         </body>
166
     </file>
170
     </file>
167
 </xliff>
171
 </xliff>

+ 4 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.es.xliff Parādīt failu

162
                 <source>This value is not a valid country</source>
162
                 <source>This value is not a valid country</source>
163
                 <target>Este valor no es un país válido</target>
163
                 <target>Este valor no es un país válido</target>
164
             </trans-unit>
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
         </body>
169
         </body>
166
     </file>
170
     </file>
167
 </xliff>
171
 </xliff>

+ 4 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.hu.xliff Parādīt failu

162
                 <source>This value is not a valid country</source>
162
                 <source>This value is not a valid country</source>
163
                 <target>Ez az érték nem egy érvényes ország</target>
163
                 <target>Ez az érték nem egy érvényes ország</target>
164
             </trans-unit>
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
         </body>
169
         </body>
166
     </file>
170
     </file>
167
 </xliff>
171
 </xliff>

+ 0 - 0
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/translations/validators.sk.xliff Parādīt failu


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels