-
-
Notifications
You must be signed in to change notification settings - Fork 327
Closed
Labels
Description
If we use a cache:
My\Interface::class => DI\object(MyClass1::class)
->scope(DI\Scope::PROTOTYPE()),If we get the entry, then override the definition, for example:
$this->container->set('My\Interface', \DI\object('ADifferentClass')
->scope(\DI\Scope::PROTOTYPE()));Then the cached definition is not cleared and the new definition is ignored.
At first thought, DefinitionManager::addDefinition() should be fixed.