Skip to content

Commit 365c4b0

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 48aec62 + 65297bd commit 365c4b0

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

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

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
*

0 commit comments

Comments
 (0)