Skip to content

Commit e2107d2

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Use the real image URL for the filesystem tests [Finder] Update PHPdoc append() [DI] Fix phpdoc Fix code examples in PHPDoc [HttpKernel] Fix inheritdocs bumped Symfony version to 3.4.16 updated VERSION for 3.4.15 updated CHANGELOG for 3.4.15
2 parents 15f0be9 + aa13bfd commit e2107d2

File tree

32 files changed

+205
-236
lines changed

32 files changed

+205
-236
lines changed

src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
* and to do the conversion of the datetime column.
2828
*
2929
* In order to use this class, you need the following table in your database:
30-
* CREATE TABLE `rememberme_token` (
31-
* `series` char(88) UNIQUE PRIMARY KEY NOT NULL,
32-
* `value` char(88) NOT NULL,
33-
* `lastUsed` datetime NOT NULL,
34-
* `class` varchar(100) NOT NULL,
35-
* `username` varchar(200) NOT NULL
36-
* );
30+
*
31+
* CREATE TABLE `rememberme_token` (
32+
* `series` char(88) UNIQUE PRIMARY KEY NOT NULL,
33+
* `value` char(88) NOT NULL,
34+
* `lastUsed` datetime NOT NULL,
35+
* `class` varchar(100) NOT NULL,
36+
* `username` varchar(200) NOT NULL
37+
* );
3738
*/
3839
class DoctrineTokenProvider implements TokenProviderInterface
3940
{

src/Symfony/Bridge/Twig/TokenParser/DumpTokenParser.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
* Token Parser for the 'dump' tag.
2020
*
2121
* Dump variables with:
22-
* <pre>
23-
* {% dump %}
24-
* {% dump foo %}
25-
* {% dump foo, bar %}
26-
* </pre>
22+
*
23+
* {% dump %}
24+
* {% dump foo %}
25+
* {% dump foo, bar %}
2726
*
2827
* @author Julien Galenski <julien.galenski@gmail.com>
2928
*/

src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ abstract protected function configureRoutes(RouteCollectionBuilder $routes);
3939
*
4040
* You can register extensions:
4141
*
42-
* $c->loadFromExtension('framework', array(
43-
* 'secret' => '%secret%'
44-
* ));
42+
* $c->loadFromExtension('framework', array(
43+
* 'secret' => '%secret%'
44+
* ));
4545
*
4646
* Or services:
4747
*
48-
* $c->register('halloween', 'FooBundle\HalloweenProvider');
48+
* $c->register('halloween', 'FooBundle\HalloweenProvider');
4949
*
5050
* Or parameters:
5151
*
52-
* $c->setParameter('halloween', 'lot of fun');
52+
* $c->setParameter('halloween', 'lot of fun');
5353
*
5454
* @param ContainerBuilder $c
5555
* @param LoaderInterface $loader

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,14 @@ public function block(FormView $view, $blockName, array $variables = array())
224224
* Use this helper for CSRF protection without the overhead of creating a
225225
* form.
226226
*
227-
* <code>
228-
* echo $view['form']->csrfToken('rm_user_'.$user->getId());
229-
* </code>
227+
* echo $view['form']->csrfToken('rm_user_'.$user->getId());
230228
*
231229
* Check the token in your action using the same CSRF token id.
232230
*
233-
* <code>
234-
* // $csrfProvider being an instance of Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface
235-
* if (!$csrfProvider->isCsrfTokenValid('rm_user_'.$user->getId(), $token)) {
236-
* throw new \RuntimeException('CSRF attack detected.');
237-
* }
238-
* </code>
231+
* // $csrfProvider being an instance of Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface
232+
* if (!$csrfProvider->isCsrfTokenValid('rm_user_'.$user->getId(), $token)) {
233+
* throw new \RuntimeException('CSRF attack detected.');
234+
* }
239235
*
240236
* @param string $tokenId The CSRF token id of the protected action
241237
*

src/Symfony/Component/Config/Definition/PrototypedArrayNode.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -342,27 +342,31 @@ protected function mergeValues($leftSide, $rightSide)
342342
* one is same as this->keyAttribute and the other is 'value', then the prototype will be different.
343343
*
344344
* For example, assume $this->keyAttribute is 'name' and the value array is as follows:
345-
* array(
345+
*
346346
* array(
347-
* 'name' => 'name001',
348-
* 'value' => 'value001'
347+
* array(
348+
* 'name' => 'name001',
349+
* 'value' => 'value001'
350+
* )
349351
* )
350-
* )
351352
*
352353
* Now, the key is 0 and the child node is:
353-
* array(
354-
* 'name' => 'name001',
355-
* 'value' => 'value001'
356-
* )
354+
*
355+
* array(
356+
* 'name' => 'name001',
357+
* 'value' => 'value001'
358+
* )
357359
*
358360
* When normalizing the value array, the 'name' element will removed from the child node
359361
* and its value becomes the new key of the child node:
360-
* array(
361-
* 'name001' => array('value' => 'value001')
362-
* )
362+
*
363+
* array(
364+
* 'name001' => array('value' => 'value001')
365+
* )
363366
*
364367
* Now only 'value' element is left in the child node which can be further simplified into a string:
365-
* array('name001' => 'value001')
368+
*
369+
* array('name001' => 'value001')
366370
*
367371
* Now, the key becomes 'name001' and the child node becomes 'value001' and
368372
* the prototype of child node 'name001' should be a ScalarNode instead of an ArrayNode instance.

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -294,15 +294,14 @@ public function setRow($column, array $row)
294294
* Renders table to output.
295295
*
296296
* Example:
297-
* <code>
298-
* +---------------+-----------------------+------------------+
299-
* | ISBN | Title | Author |
300-
* +---------------+-----------------------+------------------+
301-
* | 99921-58-10-7 | Divine Comedy | Dante Alighieri |
302-
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
303-
* | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
304-
* +---------------+-----------------------+------------------+
305-
* </code>
297+
*
298+
* +---------------+-----------------------+------------------+
299+
* | ISBN | Title | Author |
300+
* +---------------+-----------------------+------------------+
301+
* | 99921-58-10-7 | Divine Comedy | Dante Alighieri |
302+
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
303+
* | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
304+
* +---------------+-----------------------+------------------+
306305
*/
307306
public function render()
308307
{
@@ -348,7 +347,9 @@ public function render()
348347
/**
349348
* Renders horizontal header separator.
350349
*
351-
* Example: <code>+-----+-----------+-------+</code>
350+
* Example:
351+
*
352+
* +-----+-----------+-------+
352353
*/
353354
private function renderRowSeparator(int $type = self::SEPARATOR_MID)
354355
{
@@ -394,7 +395,10 @@ private function renderColumnSeparator($type = self::BORDER_OUTSIDE)
394395
/**
395396
* Renders table row.
396397
*
397-
* Example: <code>| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |</code>
398+
* Example:
399+
*
400+
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
401+
*
398402
*/
399403
private function renderRow(array $row, string $cellFormat)
400404
{

src/Symfony/Component/Console/Input/InputDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* Usage:
2121
*
2222
* $definition = new InputDefinition(array(
23-
* new InputArgument('name', InputArgument::REQUIRED),
24-
* new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
23+
* new InputArgument('name', InputArgument::REQUIRED),
24+
* new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
2525
* ));
2626
*
2727
* @author Fabien Potencier <fabien@symfony.com>

src/Symfony/Component/Console/Output/StreamOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
*
2121
* Usage:
2222
*
23-
* $output = new StreamOutput(fopen('php://stdout', 'w'));
23+
* $output = new StreamOutput(fopen('php://stdout', 'w'));
2424
*
2525
* As `StreamOutput` can use any stream, you can also use a file:
2626
*
27-
* $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
27+
* $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
2828
*
2929
* @author Fabien Potencier <fabien@symfony.com>
3030
*/

src/Symfony/Component/DependencyInjection/ContainerAwareInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
*/
1919
interface ContainerAwareInterface
2020
{
21+
/**
22+
* Sets the container.
23+
*/
2124
public function setContainer(ContainerInterface $container = null);
2225
}

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,10 @@ private function doGet($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_
616616
* the parameters passed to the container constructor to have precedence
617617
* over the loaded ones.
618618
*
619-
* $container = new ContainerBuilder(new ParameterBag(array('foo' => 'bar')));
620-
* $loader = new LoaderXXX($container);
621-
* $loader->load('resource_name');
622-
* $container->register('foo', 'stdClass');
619+
* $container = new ContainerBuilder(new ParameterBag(array('foo' => 'bar')));
620+
* $loader = new LoaderXXX($container);
621+
* $loader->load('resource_name');
622+
* $container->register('foo', 'stdClass');
623623
*
624624
* In the above example, even if the loaded resource defines a foo
625625
* parameter, the value will still be 'bar' as defined in the ContainerBuilder
@@ -1243,14 +1243,14 @@ private function doResolveServices($value, array &$inlineServices = array(), $is
12431243
*
12441244
* Example:
12451245
*
1246-
* $container->register('foo')->addTag('my.tag', array('hello' => 'world'));
1246+
* $container->register('foo')->addTag('my.tag', array('hello' => 'world'));
12471247
*
1248-
* $serviceIds = $container->findTaggedServiceIds('my.tag');
1249-
* foreach ($serviceIds as $serviceId => $tags) {
1250-
* foreach ($tags as $tag) {
1251-
* echo $tag['hello'];
1248+
* $serviceIds = $container->findTaggedServiceIds('my.tag');
1249+
* foreach ($serviceIds as $serviceId => $tags) {
1250+
* foreach ($tags as $tag) {
1251+
* echo $tag['hello'];
1252+
* }
12521253
* }
1253-
* }
12541254
*
12551255
* @param string $name
12561256
* @param bool $throwOnAbstract

0 commit comments

Comments
 (0)