We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bd72d8 + 425b377 commit 38cb47cCopy full SHA for 38cb47c
DependencyInjection.php
@@ -176,6 +176,8 @@ private function getCallbackClass(string $callbackName) : ConsumerInterface
176
*/
177
private function addControllers(Application $app)
178
{
179
- $app->controllerMap[Configuration::EXTENSION_CONTROLLER_ALIAS] = RabbitMQController::class;
+ if($app instanceof \yii\console\Application) {
180
+ $app->controllerMap[Configuration::EXTENSION_CONTROLLER_ALIAS] = RabbitMQController::class;
181
+ }
182
}
183
0 commit comments