Skip to content

Commit 4e49a3e

Browse files
Merge branch '3.4'
* 3.4: [travis] fix minor php7.0 version [travis] add ldap.so for php70 [HttpFoundation] Fix logic when JsonSerializable is missing [travis] update to trusty Add help description to debug:form command Don't use return on Assert::markTestSkipped. [TwigBridge] Show Twig's loader paths on debug:twig command [FrameworkBundle] Fix Di config to allow for more private services Create directories recursively in the PHPUnit bridge [Dotenv] Add a BC break note [Cache] Use options from Memcached DSN Fix ArrayInput::toString() for VALUE_IS_ARRAY options/args be able to enable workflow support explicitly [Yaml] add inline parser context initializer [ExpressionLanguage] throws an exception on calling uncallable method
2 parents 91d9fc6 + 1efeb86 commit 4e49a3e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Command/DebugCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ protected function configure()
5151
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt or json)', 'txt'),
5252
))
5353
->setDescription('Displays form type information')
54+
->setHelp(<<<'EOF'
55+
The <info>%command.name%</info> command displays information about a form type.
56+
57+
Either the fully-qualified class name or the short class name can be used:
58+
59+
<info>php %command.full_name% Symfony\Component\Form\Extension\Core\Type\ChoiceType</info>
60+
<info>php %command.full_name% ChoiceType</info>
61+
62+
EOF
63+
)
5464
;
5565
}
5666

FormRendererInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function searchAndRenderBlock(FormView $view, $blockNameSuffix, array $va
7676
* Check the token in your action using the same token ID.
7777
*
7878
* <code>
79-
* $csrfProvider = $this->get('security.csrf.token_generator');
79+
* // $csrfProvider being an instance of Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface
8080
* if (!$csrfProvider->isCsrfTokenValid('rm_user_'.$user->getId(), $token)) {
8181
* throw new \RuntimeException('CSRF attack detected.');
8282
* }

0 commit comments

Comments
 (0)