Skip to content

Commit 7f31e31

Browse files
author
roettigl
committed
MC-24726: Fix Plugins dismissed on virtual type
1 parent 55af84f commit 7f31e31

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Interception/ObjectManager/Config

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Interception/ObjectManager/Config/Developer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public function setInterceptionConfig(\Magento\Framework\Interception\ConfigInte
5858
public function getInstanceType($instanceName)
5959
{
6060
$type = parent::getInstanceType($instanceName);
61-
if ($this->interceptionConfig && $this->interceptionConfig->hasPlugins($instanceName)
62-
&& $this->interceptableValidator->validate($instanceName)
61+
if ($this->interceptionConfig && $this->interceptionConfig->hasPlugins($type)
62+
&& $this->interceptableValidator->validate($type)
6363
) {
6464
return $type . '\\Interceptor';
6565
}

0 commit comments

Comments
 (0)