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

Commit

Permalink
Removed MutableCreationOptionsInterface - AbstractPluginManager now d…
Browse files Browse the repository at this point in the history
…uck-types for forward compatibility
  • Loading branch information
kynx committed Jan 27, 2016
1 parent 3094844 commit 8da8f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/AbstractPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ protected function createServiceViaCallback($callable, $cName, $rName)
$factory = reset($callable);
}

// duck-type MutableCreationOptionsInterface for forward compatibility
if (isset($factory)
&& ($factory instanceof MutableCreationOptionsInterface)
&& method_exists($factory, 'setCreationOptions')
&& is_array($this->creationOptions)
&& !empty($this->creationOptions)
) {
Expand Down
3 changes: 1 addition & 2 deletions src/Factory/InvokableFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\Exception\InvalidServiceException;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\MutableCreationOptionsInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

/**
Expand All @@ -27,7 +26,7 @@
* service manager, and can also be used in v2 code for forwards compatibility
* with v3.
*/
final class InvokableFactory implements FactoryInterface, MutableCreationOptionsInterface
final class InvokableFactory implements FactoryInterface
{
/**
* Options to pass to the constructor (when used in v2), if any.
Expand Down

0 comments on commit 8da8f44

Please sign in to comment.