File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Original file line number Diff line number Diff line change 58
58
use Symfony \Component \DependencyInjection \Parameter ;
59
59
use Symfony \Component \DependencyInjection \Reference ;
60
60
use Symfony \Component \DependencyInjection \ServiceLocator ;
61
+ use Symfony \Component \Dotenv \Command \DebugCommand ;
61
62
use Symfony \Component \EventDispatcher \Attribute \AsEventListener ;
62
63
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
63
64
use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
@@ -252,6 +253,10 @@ public function load(array $configs, ContainerBuilder $container)
252
253
if (!class_exists (BaseYamlLintCommand::class)) {
253
254
$ container ->removeDefinition ('console.command.yaml_lint ' );
254
255
}
256
+
257
+ if (!class_exists (DebugCommand::class)) {
258
+ $ container ->removeDefinition ('console.command.dotenv_debug ' );
259
+ }
255
260
}
256
261
257
262
// Load Cache configuration first as it is used by other components
Original file line number Diff line number Diff line change 39
39
use Symfony \Bundle \FrameworkBundle \Command \YamlLintCommand ;
40
40
use Symfony \Bundle \FrameworkBundle \EventListener \SuggestMissingPackageSubscriber ;
41
41
use Symfony \Component \Console \EventListener \ErrorListener ;
42
+ use Symfony \Component \Dotenv \Command \DebugCommand as DotenvDebugCommand ;
42
43
use Symfony \Component \Messenger \Command \ConsumeMessagesCommand ;
43
44
use Symfony \Component \Messenger \Command \DebugCommand ;
44
45
use Symfony \Component \Messenger \Command \FailedMessagesRemoveCommand ;
129
130
])
130
131
->tag ('console.command ' )
131
132
133
+ ->set ('console.command.dotenv_debug ' , DotenvDebugCommand::class)
134
+ ->args ([
135
+ param ('kernel.environment ' ),
136
+ param ('kernel.project_dir ' ),
137
+ ])
138
+ ->tag ('console.command ' )
139
+
132
140
->set ('console.command.event_dispatcher_debug ' , EventDispatcherDebugCommand::class)
133
141
->args ([
134
142
tagged_locator ('event_dispatcher.dispatcher ' , 'name ' ),
You can’t perform that action at this time.
0 commit comments