laminas/laminas-servicemanager breaking changes
laminas/laminas-servicemanager 4.0.0 (March 4, 2024) is its newest release with breaking changes, 69 of them. The first: Removed AbstractPluginManager.validate. Every breaking API change we have recorded in laminas/laminas-servicemanager on Packagist: 69 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.6.0, released November 13, 2026. BSD-3-Clause license. Source repository
Its 4.0.0 release requires PHP 8.1 or later. PHP end of life dates.
laminas/laminas-servicemanager 4.0.0 breaking changes
- Removed
AbstractPluginManager.validate
Plugin managers no longer validate instances; extend AbstractSingleInstancePluginManager for a single instanceOf type or implement validate yourself. github.com - Removed
ConfigInterface
The deprecated ConfigInterface and Config class are removed; pass configuration arrays directly. github.com - Removed
Laminas\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory::$aliases
Laminas\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory::$aliases was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\AbstractFactoryInterface
The deprecated Laminas\ServiceManager\AbstractFactoryInterface interface is gone; use the Psr container equivalents instead. packagist.org - Removed
Laminas\ServiceManager\AbstractPluginManager::$allowOverride
Laminas\ServiceManager\AbstractPluginManager::$allowOverride was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\AbstractPluginManager::$configured
Laminas\ServiceManager\AbstractPluginManager::$configured was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\AbstractPluginManager::$creationContext
Laminas\ServiceManager\AbstractPluginManager::$creationContext was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\AbstractPluginManager::$instanceOf
Laminas\ServiceManager\AbstractPluginManager::$instanceOf was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\AbstractPluginManager::setServiceLocator
Laminas\ServiceManager\AbstractPluginManager::setServiceLocator was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\Config
Laminas\ServiceManager\Config was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\ConfigInterface
Laminas\ServiceManager\ConfigInterface was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\DelegatorFactoryInterface
The deprecated Laminas\ServiceManager\DelegatorFactoryInterface interface is removed. packagist.org - Removed
Laminas\ServiceManager\Exception\InvalidArgumentException::fromInvalidAbstractFactory
Laminas\ServiceManager\Exception\InvalidArgumentException::fromInvalidAbstractFactory was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\FactoryInterface
The deprecated Laminas\ServiceManager\FactoryInterface interface is removed. packagist.org - Removed
Laminas\ServiceManager\InitializerInterface
The deprecated Laminas\ServiceManager\InitializerInterface interface is removed. packagist.org - Removed
Laminas\ServiceManager\ServiceManager::getServiceLocator
The deprecated ServiceManager#getServiceLocator method is removed. packagist.org - Removed
Laminas\ServiceManager\Tool\ConfigDumper
Laminas\ServiceManager\Tool\ConfigDumper was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\Tool\ConfigDumperCommand
Laminas\ServiceManager\Tool\ConfigDumperCommand was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\Tool\FactoryCreator
Laminas\ServiceManager\Tool\FactoryCreator was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Removed
Laminas\ServiceManager\Tool\FactoryCreatorCommand
Laminas\ServiceManager\Tool\FactoryCreatorCommand was removed in laminas/laminas-servicemanager 4.0.0 packagist.org - Behavior changed
Code must run on PHP 8.1 or later. github.com - Behavior changed
AbstractPluginManager
AbstractPluginManager uses its own internal ServiceManager instance instead of inheriting from it, so code relying on the inheritance breaks. github.com - Behavior changed
AbstractPluginManager.get
Calling get with options is no longer supported; use build to create an instance with options. github.com - Behavior changed
ServiceManager
Neither ServiceManager nor AbstractPluginManager validate configuration at runtime anymore; misconfiguration must be caught by static analysis. github.com - Signature changed
Laminas\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory
Was class ReflectionBasedAbstractFactory implements AbstractFactoryInterface; now final class ReflectionBasedAbstractFactory implements AbstractFactoryInterface. packagist.org - Signature changed
Laminas\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory::__construct
Was public function __construct(array $aliases = []); now public function __construct(public readonly array $aliases = [], ?ConstructorParameterResolverInterface $constructorParameterResolver = null). packagist.org - Signature changed
Laminas\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory::__invoke
Was public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null); now public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): object. packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager
Was abstract class AbstractPluginManager extends ServiceManager implements PluginManagerInterface; now abstract class AbstractPluginManager implements PluginManagerInterface. packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager::__construct
Was public function __construct($configInstanceOrParentLocator = null, array $config = []); now public function __construct(ContainerInterface $creationContext, array $config = []). packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager::$autoAddInvokableClass
Was protected $autoAddInvokableClass; now protected bool $autoAddInvokableClass. packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager::get
Was public function get($name, ?array $options = null); now public function get(string $id): mixed. packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager::mapLazyService
Was public function mapLazyService($name, $class = null); now public function mapLazyService(string $name, string|null $class = null): void. packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager::setFactory
Was public function setFactory($name, $factory); now public function setFactory(string $name, string|callable|Factory\FactoryInterface $factory): void. packagist.org - Signature changed
Laminas\ServiceManager\AbstractPluginManager::setInvokableClass
Was public function setInvokableClass($name, $class = null); now public function setInvokableClass(string $name, string|null $class = null): void. packagist.org - Signature changed
Laminas\ServiceManager\Exception\CyclicAliasException::fromAliasesMap
Was public static function fromAliasesMap(array $aliases); now public static function fromAliasesMap(array $aliases): self. packagist.org - Signature changed
Laminas\ServiceManager\Factory\AbstractFactoryInterface::canCreate
Was public function canCreate(ContainerInterface $container, $requestedName); now public function canCreate(ContainerInterface $container, string $requestedName): bool. packagist.org - Signature changed
Laminas\ServiceManager\Factory\DelegatorFactoryInterface::__invoke
Was public function __invoke(ContainerInterface $container, $name, callable $callback, ?array $options = null); now public function __invoke(ContainerInterface $container, string $name, callable $callback, ?array $options = null): mixed. packagist.org - Signature changed
Laminas\ServiceManager\Factory\FactoryInterface::__invoke
Was public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null); now public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): mixed. packagist.org - Signature changed
Laminas\ServiceManager\PluginManagerInterface::validate
Was public function validate(mixed $instance); now public function validate(mixed $instance): void. packagist.org - Signature changed
Laminas\ServiceManager\Proxy\LazyServiceFactory::__construct
Was public function __construct(private LazyLoadingValueHolderFactory $proxyFactory, private array $servicesMap); now public function __construct(private readonly LazyLoadingValueHolderFactory $proxyFactory, private readonly array... packagist.org - Signature changed
Laminas\ServiceManager\Proxy\LazyServiceFactory::__invoke
Was public function __invoke(ContainerInterface $container, $name, callable $callback, ?array $options = null); now public function __invoke(ContainerInterface $container, string $name, callable $callback, ?array $options = null)... packagist.org - Signature changed
Laminas\ServiceManager\ServiceLocatorInterface::build
Was public function build($name, ?array $options = null); now public function build(string $name, ?array $options = null): mixed. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::__construct
Was public function __construct(array $config = []); now public function __construct(array $config = [], ContainerInterface|null $creationContext = null). packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$abstractFactories
Was protected $abstractFactories; now protected array $abstractFactories. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$aliases
Was protected $aliases; now protected array $aliases. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$allowOverride
Was protected $allowOverride; now protected bool $allowOverride. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$configured
Was protected $configured; now protected bool $configured. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$creationContext
Was protected $creationContext; now protected ContainerInterface $creationContext. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$delegators
Was protected $delegators; now protected array $delegators. packagist.org - Signature changed
Laminas\ServiceManager\ServiceManager::$factories
Was protected $factories; now protected array $factories. packagist.org
And 19 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.