You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -182,7 +182,7 @@ public function load(array $configs, ContainerBuilder $container)
182
182
// translator will be used and everything will still work as expected.
183
183
if ($this->isConfigEnabled($container, $config['translator']) || $this->isConfigEnabled($container, $config['form']) || $this->isConfigEnabled($container, $config['validation'])) {
184
184
if (!class_exists('Symfony\Component\Translation\Translator') && $this->isConfigEnabled($container, $config['translator'])) {
185
-
thrownewLogicException('Translation support cannot be enabled as the Translation component is not installed.');
185
+
thrownewLogicException('Translation support cannot be enabled as the Translation component is not installed. Try running "composer require symfony/translation".');
186
186
}
187
187
188
188
if (class_exists(Translator::class)) {
@@ -241,7 +241,7 @@ public function load(array $configs, ContainerBuilder $container)
241
241
242
242
if ($this->isConfigEnabled($container, $config['form'])) {
243
243
if (!class_exists('Symfony\Component\Form\Form')) {
244
-
thrownewLogicException('Form support cannot be enabled as the Form component is not installed.');
244
+
thrownewLogicException('Form support cannot be enabled as the Form component is not installed. Try running "composer require symfony/form".');
245
245
}
246
246
247
247
$this->formConfigEnabled = true;
@@ -261,15 +261,15 @@ public function load(array $configs, ContainerBuilder $container)
261
261
262
262
if ($this->isConfigEnabled($container, $config['assets'])) {
263
263
if (!class_exists('Symfony\Component\Asset\Package')) {
264
-
thrownewLogicException('Asset support cannot be enabled as the Asset component is not installed.');
264
+
thrownewLogicException('Asset support cannot be enabled as the Asset component is not installed. Try running "composer require symfony/asset".');
if ($this->isConfigEnabled($container, $config['templating'])) {
271
271
if (!class_exists('Symfony\Component\Templating\PhpEngine')) {
272
-
thrownewLogicException('Templating support cannot be enabled as the Templating component is not installed.');
272
+
thrownewLogicException('Templating support cannot be enabled as the Templating component is not installed. Try running "composer require symfony/templating".');
@@ -290,7 +290,7 @@ public function load(array $configs, ContainerBuilder $container)
290
290
291
291
if ($this->isConfigEnabled($container, $config['serializer'])) {
292
292
if (!class_exists('Symfony\Component\Serializer\Serializer')) {
293
-
thrownewLogicException('Serializer support cannot be enabled as the Serializer component is not installed.');
293
+
thrownewLogicException('Serializer support cannot be enabled as the Serializer component is not installed. Try running "composer require symfony/serializer-pack".');
@@ -306,7 +306,7 @@ public function load(array $configs, ContainerBuilder $container)
306
306
307
307
if ($this->isConfigEnabled($container, $config['web_link'])) {
308
308
if (!class_exists(HttpHeaderSerializer::class)) {
309
-
thrownewLogicException('WebLink support cannot be enabled as the WebLink component is not installed.');
309
+
thrownewLogicException('WebLink support cannot be enabled as the WebLink component is not installed. Try running "composer require symfony/weblink".');
310
310
}
311
311
312
312
$loader->load('web_link.xml');
@@ -585,7 +585,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
585
585
}
586
586
587
587
if (!class_exists(Workflow\Workflow::class)) {
588
-
thrownewLogicException('Workflow support cannot be enabled as the Workflow component is not installed.');
588
+
thrownewLogicException('Workflow support cannot be enabled as the Workflow component is not installed. Try running "composer require symfony/workflow".');
589
589
}
590
590
591
591
$loader->load('workflow.xml');
@@ -688,11 +688,11 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
688
688
}
689
689
690
690
if (!class_exists(ExpressionLanguage::class)) {
691
-
thrownewLogicException('Cannot guard workflows as the ExpressionLanguage component is not installed.');
691
+
thrownewLogicException('Cannot guard workflows as the ExpressionLanguage component is not installed. Try running "composer require symfony/expression-language".');
692
692
}
693
693
694
694
if (!class_exists(Security::class)) {
695
-
thrownewLogicException('Cannot guard workflows as the Security component is not installed.');
695
+
thrownewLogicException('Cannot guard workflows as the Security component is not installed. Try running "composer require symfony/security".');
@@ -1224,7 +1224,7 @@ private function registerValidationConfiguration(array $config, ContainerBuilder
1224
1224
}
1225
1225
1226
1226
if (!class_exists('Symfony\Component\Validator\Validation')) {
1227
-
thrownewLogicException('Validation support cannot be enabled as the Validator component is not installed.');
1227
+
thrownewLogicException('Validation support cannot be enabled as the Validator component is not installed. Try running "composer require symfony/validator".');
0 commit comments