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.
1 parent 3aaa0f7 commit 425b377Copy full SHA for 425b377
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