Skip to content

Commit a5a912c

Browse files
committed
Add debug:form command
1 parent 2210dcc commit a5a912c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ public function load(array $configs, ContainerBuilder $container)
220220
if (!class_exists('Symfony\Component\Validator\Validation')) {
221221
throw new LogicException('The Validator component is required to use the Form component.');
222222
}
223+
} else {
224+
$container->removeDefinition('Symfony\Component\Form\Command\DebugCommand');
223225
}
224226

225227
$this->registerSecurityCsrfConfiguration($config['csrf_protection'], $container, $loader);

Resources/config/console.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,11 @@
9696
<service id="Symfony\Bundle\FrameworkBundle\Command\YamlLintCommand">
9797
<tag name="console.command" command="lint:yaml" />
9898
</service>
99+
100+
<service id="Symfony\Component\Form\Command\DebugCommand">
101+
<argument type="service" id="form.registry" />
102+
<argument type="collection" /> <!-- All form types namespaces are stored here by FormPass -->
103+
<tag name="console.command" command="debug:form" />
104+
</service>
99105
</services>
100106
</container>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"symfony/dom-crawler": "~2.8|~3.0|~4.0",
4141
"symfony/polyfill-intl-icu": "~1.0",
4242
"symfony/security": "~2.8|~3.0|~4.0",
43-
"symfony/form": "~3.3|~4.0",
43+
"symfony/form": "~3.4|~4.0",
4444
"symfony/expression-language": "~2.8|~3.0|~4.0",
4545
"symfony/process": "~2.8|~3.0|~4.0",
4646
"symfony/security-core": "~3.2|~4.0",

0 commit comments

Comments
 (0)