Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Closed
Labels
Description
Symfony version(s) affected
7.3.0
Description
I just updated my application, cleared the cache, and now when the kernel boot, I got the following error:
I have no name! /app/server/backend bin/console In CheckExceptionOnInvalidReferenceBehaviorPass.php line 116: The service "messenger.middleware.deduplicate_middleware" has a dependency on a non-existent service "lock.factory". Did you mean one of these: "ulid.factory", "uuid.factory", "form.factory"?
The very strange thing, is we don't use themessenger.middleware.deduplicate_middleware
messenger middleware
edit: see
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Lines 2358 to 2362 in25e04ae
if ($lockEnabled &&class_exists(DeduplicateMiddleware::class) &&class_exists(LockFactory::class)) { | |
$defaultMiddleware['before'][] = ['id' =>'deduplicate_middleware']; | |
}else { | |
$container->removeDefinition('messenger.middleware.deduplicate_middleware'); | |
} |
=> IMHO, this middleware should be optin! But it's another story
How to reproduce
Iguess it occurs with a fresh symfony + mesenger + lock + all lock have a name different fromdefault
Possible Solution
Additional Context
No response