Commit eec489d 1 parent 6966671 commit eec489d Copy full SHA for eec489d
File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 24
24
},
25
25
"require" : {
26
26
"bunny/bunny" : " ^0.2.4" ,
27
- "kdyby /console" : " ~2.6.0|~2.7.0 "
27
+ "symfony /console" : " ~3.3 "
28
28
}
29
29
}
Original file line number Diff line number Diff line change 19
19
use Gamee \RabbitMQ \DI \Helpers \ProducersHelper ;
20
20
use Gamee \RabbitMQ \DI \Helpers \QueuesHelper ;
21
21
use Gamee \RabbitMQ \Queue \QueueFactory ;
22
- use Kdyby ;
23
22
use Nette \DI \CompilerExtension ;
24
23
use Nette \DI \ServiceDefinition ;
25
24
@@ -125,13 +124,16 @@ public function setupConsoleCommand(): void
125
124
{
126
125
$ builder = $ this ->getContainerBuilder ();
127
126
128
- $ builder ->addDefinition ($ this ->prefix ('console.consumerCommand ' ))
129
- ->setClass (ConsumerCommand::class)
130
- ->addTag (Kdyby \Console \DI \ConsoleExtension::TAG_COMMAND );
127
+ $ consumerCommand = $ builder ->addDefinition ($ this ->prefix ('console.consumerCommand ' ))
128
+ ->setClass (ConsumerCommand::class);
131
129
132
- $ builder ->addDefinition ($ this ->prefix ('console.staticConsumerCommand ' ))
133
- ->setClass (StaticConsumerCommand::class)
134
- ->addTag (Kdyby \Console \DI \ConsoleExtension::TAG_COMMAND );
130
+ $ staticConsumerCommand = $ builder ->addDefinition ($ this ->prefix ('console.staticConsumerCommand ' ))
131
+ ->setClass (StaticConsumerCommand::class);
132
+
133
+ if (class_exists ('Kdyby\Console\DI\ConsoleExtension ' )) {
134
+ $ consumerCommand ->addTag (\Kdyby \Console \DI \ConsoleExtension::TAG_COMMAND );
135
+ $ staticConsumerCommand ->addTag (\Kdyby \Console \DI \ConsoleExtension::TAG_COMMAND );
136
+ }
135
137
}
136
138
137
139
}
You can’t perform that action at this time.
0 commit comments