Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit b172ab3

Browse files
committed
Add comment for psr to interop container decoration in abstract plugin manager
1 parent f052223 commit b172ab3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/AbstractPluginManager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public function __construct($configInstanceOrParentLocator = null, array $config
5656
if ($configInstanceOrParentLocator instanceof PsrContainerInterface
5757
&& ! $configInstanceOrParentLocator instanceof ContainerInterface
5858
) {
59+
/**
60+
* {@see \Zend\ServiceManager\Factory\FactoryInterface} typehints
61+
* against interop container and as such cannot accept non-interop
62+
* psr container. Decorate it as interop.
63+
*/
5964
$configInstanceOrParentLocator = new PsrContainerDecorator($configInstanceOrParentLocator);
6065
}
6166
if (null !== $configInstanceOrParentLocator

0 commit comments

Comments
 (0)