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/Command/ContainerLintCommand.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ private function getContainerBuilder(): ContainerBuilder
80
80
81
81
if (!$kernel->isDebug() || !(newConfigCache($kernelContainer->getParameter('debug.container.dump'), true))->isFresh()) {
82
82
if (!$kernelinstanceof Kernel) {
83
-
thrownewRuntimeException("This command does not support the console application's kernel.");
83
+
thrownewRuntimeException(sprintf('This command does not support the application kernel: "%s" does not extend "%s".', \get_class($kernel), Kernel::class));
@@ -93,7 +93,7 @@ private function getContainerBuilder(): ContainerBuilder
93
93
$skippedIds = [];
94
94
} else {
95
95
if (!$kernelContainerinstanceof Container) {
96
-
thrownewRuntimeException("This command does not support the console application kernel's container.");
96
+
thrownewRuntimeException(sprintf('This command does not support the application container: "%s" does not extend "%s".', \get_class($kernelContainer), Container::class));
0 commit comments