Skip to content

Upgrading zendframework/zend-servicemanager 2 to 3

Unknown2.7.11 → 3.4.0

Fetching 13 releases from GitHub…0 / 13
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

PHP requirement changed in 3.2.0: ^5.5 || ^7.0 → ^5.6 || ^7.0.

Generated by DepDelta from published PHP source. Not mixed with prose notes.

  • removed: const ServiceManager.SCOPE_CHILD
  • removed: const ServiceManager.SCOPE_PARENT
  • removed: interface MutableCreationOptionsInterface
  • removed: interface ServiceLocatorAwareInterface
  • removed: interface ServiceManagerAwareInterface
  • removed: method AbstractPluginManager.getServiceLocator()
  • removed: method AbstractPluginManager.setService($name, $service, $shared = …)
  • removed: method AbstractPluginManager.validatePlugin($plugin)
  • removed: method Config.getAbstractFactories()
  • removed: method Config.getAliases()
  • removed: method Config.getAllowOverride()
  • removed: method Config.getDelegators()
  • removed: method Config.getFactories()
  • removed: method Config.getInitializers()
  • removed: method Config.getInvokables()
  • removed: method Config.getServices()
  • removed: method Config.getShared()
  • removed: method MutableCreationOptionsInterface.setCreationOptions(array $options)
  • removed: method MutableCreationOptionsTrait.getCreationOptions()
  • removed: method MutableCreationOptionsTrait.setCreationOptions(array $creationOptions)
  • removed: method ServiceLocatorAwareInterface.getServiceLocator()
  • removed: method ServiceLocatorAwareInterface.setServiceLocator(ServiceLocatorInterface $serviceLocator)
  • removed: method ServiceLocatorAwareTrait.getServiceLocator()
  • removed: method ServiceLocatorAwareTrait.setServiceLocator(ServiceLocatorInterface $serviceLocator)
  • removed: method ServiceLocatorInterface.get($name)
  • removed: method ServiceLocatorInterface.has($name)
  • removed: method ServiceManager.addPeeringServiceManager(ServiceManager $manager, $peering = …)
  • removed: method ServiceManager.canCreate($name, $checkAbstractFactories = …)
  • removed: method ServiceManager.canCreateFromAbstractFactory($cName, $rName)
  • removed: method ServiceManager.create($name)
  • removed: method ServiceManager.createScopedServiceManager($peering = …)
  • removed: method ServiceManager.getCanonicalNames()
  • removed: method ServiceManager.getRegisteredServices()
  • removed: method ServiceManager.getThrowExceptionInCreate()
  • removed: method ServiceManager.hasAlias($alias)
  • removed: method ServiceManager.isShared($name)
  • removed: method ServiceManager.retrieveFromPeeringManagerFirst()
  • removed: method ServiceManager.setCanonicalNames($canonicalNames)
  • removed: method ServiceManager.setRetrieveFromPeeringManagerFirst($retrieveFromPeeringManagerFirst = …)
  • removed: method ServiceManager.setShareByDefault($shareByDefault)
  • removed: method ServiceManager.setThrowExceptionInCreate($throwExceptionInCreate)
  • removed: method ServiceManager.shareByDefault()
  • removed: method ServiceManagerAwareInterface.setServiceManager(ServiceManager $serviceManager)
  • removed: protected method AbstractPluginManager.createFromFactory($canonicalName, $requestedName)
  • removed: protected method AbstractPluginManager.createFromInvokable($canonicalName, $requestedName)
  • removed: protected method AbstractPluginManager.createServiceViaCallback($callable, $cName, $rName)
  • removed: protected method ServiceManager.canonicalizeName($name)
  • removed: protected method ServiceManager.checkForCircularAliasReference($alias, $nameOrAlias)
  • removed: protected method ServiceManager.checkNestedContextStart($cName)
  • removed: protected method ServiceManager.checkNestedContextStop($force = …)
  • removed: protected method ServiceManager.createDelegatorFromFactory($canonicalName, $requestedName)
  • removed: protected method ServiceManager.createFromAbstractFactory($canonicalName, $requestedName)
  • removed: protected method ServiceManager.createFromFactory($canonicalName, $requestedName)
  • removed: protected method ServiceManager.createFromInvokable($canonicalName, $requestedName)
  • removed: protected method ServiceManager.createServiceViaCallback($callable, $cName, $rName)
  • removed: protected method ServiceManager.doCreate($rName, $cName)
  • removed: protected method ServiceManager.loopPeeringServiceManagers($name)
  • removed: protected method ServiceManager.resolveAlias($cName)
  • removed: protected method ServiceManager.retrieveFromPeeringManager($name)
  • removed: protected method ServiceManager.unregisterService($canonical)
  • removed: protected property AbstractPluginManager.allowOverride
  • removed: protected property AbstractPluginManager.creationOptions
  • removed: protected property AbstractPluginManager.serviceLocator
  • removed: protected property MutableCreationOptionsTrait.creationOptions
  • removed: protected property ServiceLocatorAwareTrait.serviceLocator
  • removed: protected property ServiceManager.canonicalNames
  • removed: protected property ServiceManager.canonicalNamesReplacements
  • removed: protected property ServiceManager.instances
  • removed: protected property ServiceManager.invokableClasses
  • removed: protected property ServiceManager.nestedContext
  • removed: protected property ServiceManager.nestedContextCounter
  • removed: protected property ServiceManager.peeringServiceManagers
  • removed: protected property ServiceManager.pendingAbstractFactoryRequests
  • removed: protected property ServiceManager.retrieveFromPeeringManagerFirst
  • removed: protected property ServiceManager.serviceManagerCaller
  • removed: protected property ServiceManager.shareByDefault
  • removed: protected property ServiceManager.throwExceptionInCreate
  • removed: protected static method ServiceManager.isSubclassOf($className, $type)
  • removed: trait MutableCreationOptionsTrait
  • removed: trait ServiceLocatorAwareTrait
  • changed: abstract class AbstractPluginManager extends ServiceManager implements ServiceLocatorAwareInterface → abstract class AbstractPluginManager extends ServiceManager implements PluginManagerInterface
  • changed: constructor AbstractPluginManager($configOrContainerInstance = …, array $v3config = …) → constructor AbstractPluginManager($configInstanceOrParentLocator = …, array $config = …)
  • changed: constructor Config($config = …) → constructor Config(array $config = …)
  • changed: constructor ServiceManager(ConfigInterface $config = …) → constructor ServiceManager(array $config = …)
  • changed: interface AbstractFactoryInterface → interface AbstractFactoryInterface extends Factory\AbstractFactoryInterface
  • changed: interface DelegatorFactoryInterface → interface DelegatorFactoryInterface extends Factory\DelegatorFactoryInterface
  • changed: interface FactoryInterface → interface FactoryInterface extends Factory\FactoryInterface
  • changed: interface InitializerInterface → interface InitializerInterface extends Initializer\InitializerInterface
  • changed: interface ServiceLocatorInterface extends ContainerInterface → interface ServiceLocatorInterface extends PsrContainerInterface, InteropContainerInterface
  • changed: method AbstractPluginManager.get($name, $options = …, $usePeeringServiceManagers = …) → method AbstractPluginManager.get($name, array $options = …)
  • changed: method AbstractPluginManager.setServiceLocator(ServiceLocatorInterface $serviceLocator) → method AbstractPluginManager.setServiceLocator(ContainerInterface $container)
  • changed: method ServiceManager.addAbstractFactory($factory, $topOfStack = …) → method ServiceManager.addAbstractFactory($factory)
  • changed: method ServiceManager.addDelegator($serviceName, $delegatorFactoryName) → method ServiceManager.addDelegator($name, $factory)
  • changed: method ServiceManager.addInitializer($initializer, $topOfStack = …) → method ServiceManager.addInitializer($initializer)
  • changed: method ServiceManager.get($name, $usePeeringServiceManagers = …) → method ServiceManager.get($name)
  • changed: method ServiceManager.has($name, $checkAbstractFactories = …, $usePeeringServiceManagers = …) → method ServiceManager.has($name)
  • changed: method ServiceManager.setAlias($alias, $nameOrAlias) → method ServiceManager.setAlias($alias, $target)
  • changed: method ServiceManager.setAllowOverride($allowOverride) → method ServiceManager.setAllowOverride($flag)
  • changed: method ServiceManager.setFactory($name, $factory, $shared = …) → method ServiceManager.setFactory($name, $factory)
  • changed: method ServiceManager.setInvokableClass($name, $invokableClass, $shared = …) → method ServiceManager.setInvokableClass($name, $class = …)
  • changed: method ServiceManager.setShared($name, $isShared) → method ServiceManager.setShared($name, $flag)
  • added: constructor PsrContainerDecorator(PsrContainerInterface $container)
  • added: final class PsrContainerDecorator implements ContainerInterface
  • added: interface PluginManagerInterface extends ServiceLocatorInterface
  • added: method AbstractPluginManager.configure(array $config)
  • added: method AbstractPluginManager.validate($instance)
  • added: method Config.toArray()
  • added: method ConfigInterface.toArray()
  • added: method PluginManagerInterface.validate($instance)
  • added: method PsrContainerDecorator.get($id)
  • added: method PsrContainerDecorator.getContainer()
  • added: method PsrContainerDecorator.has($id)
  • added: method ServiceLocatorInterface.build($name, array $options = …)
  • added: method ServiceManager.build($name, array $options = …)
  • added: method ServiceManager.configure(array $config)
  • added: method ServiceManager.getServiceLocator()
  • added: method ServiceManager.mapLazyService($name, $class = …)
  • added: protected property AbstractPluginManager.instanceOf
  • added: protected property ServiceManager.configured
  • added: protected property ServiceManager.creationContext
  • added: protected property ServiceManager.lazyServices
  • added: protected property ServiceManager.services
  • added: protected property ServiceManager.sharedByDefault
  • added: class ReflectionBasedAbstractFactory implements AbstractFactoryInterface
  • added: constructor ReflectionBasedAbstractFactory(array $aliases = …)
  • added: final class ConfigAbstractFactory implements AbstractFactoryInterface
  • added: method ConfigAbstractFactory.__invoke(\Interop\Container\ContainerInterface $container, $requestedName, array $options = …)
  • added: method ConfigAbstractFactory.canCreate(\Interop\Container\ContainerInterface $container, $requestedName)
  • added: method ReflectionBasedAbstractFactory.__invoke(ContainerInterface $container, $requestedName, array $options = …)
  • added: method ReflectionBasedAbstractFactory.canCreate(ContainerInterface $container, $requestedName)
  • added: protected property ReflectionBasedAbstractFactory.aliases
  • removed: class DiAbstractServiceFactory extends DiServiceFactory implements AbstractFactoryInterface
  • removed: class DiInstanceManagerProxy extends DiInstanceManager
  • removed: class DiServiceFactory extends Di implements FactoryInterface
  • removed: class DiServiceInitializer extends Di implements InitializerInterface
  • removed: const DiServiceFactory.USE_SL_AFTER_DI
  • removed: const DiServiceFactory.USE_SL_BEFORE_DI
  • removed: const DiServiceFactory.USE_SL_NONE
  • removed: constructor DiAbstractServiceFactory(Di $di, $useServiceLocator = …)
  • removed: constructor DiInstanceManagerProxy(DiInstanceManager $diInstanceManager, ServiceLocatorInterface $serviceLocator)
  • removed: constructor DiServiceFactory(Di $di, $name, array $parameters = …, $useServiceLocator = …)
  • removed: constructor DiServiceInitializer(Di $di, ServiceLocatorInterface $serviceLocator, DiInstanceManagerProxy $diImProxy = …)
  • removed: method DiAbstractServiceFactory.canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
  • removed: method DiAbstractServiceFactory.createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
  • removed: method DiInstanceManagerProxy.getSharedInstance($classOrAlias)
  • removed: method DiInstanceManagerProxy.hasSharedInstance($classOrAlias)
  • removed: method DiServiceFactory.createService(ServiceLocatorInterface $serviceLocator)
  • removed: method DiServiceFactory.get($name, array $params = …)
  • removed: method DiServiceInitializer.initialize($instance, ServiceLocatorInterface $serviceLocator)
  • removed: protected property DiInstanceManagerProxy.diInstanceManager
  • removed: protected property DiInstanceManagerProxy.serviceLocator
  • removed: protected property DiServiceFactory.di
  • removed: protected property DiServiceFactory.name
  • removed: protected property DiServiceFactory.parameters
  • removed: protected property DiServiceFactory.serviceLocator
  • removed: protected property DiServiceFactory.useServiceLocator
  • removed: protected property DiServiceInitializer.di
  • removed: protected property DiServiceInitializer.diInstanceManagerProxy
  • removed: protected property DiServiceInitializer.serviceLocator
  • removed: class CircularDependencyFoundException extends RuntimeException
  • removed: class CircularReferenceException extends RuntimeException
  • removed: class InvalidServiceNameException extends RuntimeException
  • removed: class RuntimeException extends \RuntimeException implements ExceptionInterface
  • removed: class ServiceLocatorUsageException extends ServiceNotFoundException
  • removed: static method ServiceLocatorUsageException.fromInvalidPluginManagerRequestedServiceName(AbstractPluginManager $pluginManager, ServiceLocatorInterface $parentLocator, $serviceName, BaseException $previousException)
  • changed: class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface → class InvalidArgumentException extends SplInvalidArgumentException implements ExceptionInterface
  • changed: class InvalidServiceException extends RuntimeException → class InvalidServiceException extends SplRuntimeException implements ExceptionInterface
  • changed: class ServiceNotCreatedException extends RuntimeException → class ServiceNotCreatedException extends SplRuntimeException implements ContainerException, ExceptionInterface
  • changed: class ServiceNotFoundException extends InvalidArgumentException implements NotFoundException → class ServiceNotFoundException extends SplInvalidArgumentException implements ExceptionInterface, NotFoundException
  • added: class ContainerModificationsNotAllowedException extends DomainException implements ExceptionInterface
  • added: class CyclicAliasException extends InvalidArgumentException
  • added: static method CyclicAliasException.fromAliasesMap(array $aliases)
  • removed: constructor InvokableFactory($creationOptions = …)
  • removed: method InvokableFactory.createService(ServiceLocatorInterface $serviceLocator, $canonicalName = …, $requestedName = …)
  • removed: method InvokableFactory.setCreationOptions(array $creationOptions = …)
  • added: interface AbstractFactoryInterface extends FactoryInterface
  • added: interface DelegatorFactoryInterface
  • added: interface FactoryInterface
  • added: method AbstractFactoryInterface.canCreate(ContainerInterface $container, $requestedName)
  • added: method DelegatorFactoryInterface.__invoke(ContainerInterface $container, $name, callable $callback, array $options = …)
  • added: method FactoryInterface.__invoke(ContainerInterface $container, $requestedName, array $options = …)
  • added: interface InitializerInterface
  • added: method InitializerInterface.__invoke(ContainerInterface $container, $instance)
  • removed: class LazyServiceFactoryFactory implements FactoryInterface
  • removed: method LazyServiceFactory.createDelegatorWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName, $callback)
  • removed: method LazyServiceFactoryFactory.createService(ServiceLocatorInterface $serviceLocator)
  • removed: protected property LazyServiceFactory.proxyFactory
  • removed: protected property LazyServiceFactory.servicesMap
  • changed: class LazyServiceFactory implements DelegatorFactoryInterface → final class LazyServiceFactory implements DelegatorFactoryInterface
  • added: method LazyServiceFactory.__invoke(ContainerInterface $container, $name, callable $callback, array $options = …)
  • added: class ConfigDumper
  • added: class ConfigDumperCommand
  • added: class FactoryCreator
  • added: class FactoryCreatorCommand
  • added: const ConfigDumper.CONFIG_TEMPLATE
  • added: const ConfigDumperCommand.COMMAND_DUMP
  • added: const ConfigDumperCommand.COMMAND_ERROR
  • added: const ConfigDumperCommand.COMMAND_HELP
  • added: const ConfigDumperCommand.DEFAULT_SCRIPT_NAME
  • added: const ConfigDumperCommand.HELP_TEMPLATE
  • added: const FactoryCreator.FACTORY_TEMPLATE
  • added: const FactoryCreatorCommand.COMMAND_DUMP
  • added: const FactoryCreatorCommand.COMMAND_ERROR
  • added: const FactoryCreatorCommand.COMMAND_HELP
  • added: const FactoryCreatorCommand.DEFAULT_SCRIPT_NAME
  • added: const FactoryCreatorCommand.HELP_TEMPLATE
  • added: constructor ConfigDumper(ContainerInterface $container = …)
  • added: constructor ConfigDumperCommand($scriptName = …, ConsoleHelper $helper = …)
  • added: constructor FactoryCreatorCommand($scriptName = …, ConsoleHelper $helper = …)
  • added: method ConfigDumper.createDependencyConfig(array $config, $className, $ignoreUnresolved = …)
  • added: method ConfigDumper.createFactoryMappings(array $config, $className)
  • added: method ConfigDumper.createFactoryMappingsFromConfig(array $config)
  • added: method ConfigDumper.dumpConfigFile(array $config)
  • added: method ConfigDumperCommand.__invoke(array $args)
  • added: method FactoryCreator.createFactory($className)
  • added: method FactoryCreatorCommand.__invoke(array $args)