$this->getDependencyConfig(), 'laminas-cli' => $this->getCliConfig(), ]; } /** * Return default service mappings for laminas-cache. * * @return ServiceManagerConfiguration */ public function getDependencyConfig() { $dependencies = [ 'abstract_factories' => [ Service\StorageCacheAbstractServiceFactory::class, ], 'factories' => [ Storage\AdapterPluginManager::class => Service\StorageAdapterPluginManagerFactory::class, Storage\PluginManager::class => Service\StoragePluginManagerFactory::class, StoragePluginFactory::class => StoragePluginFactoryFactory::class, StoragePluginFactoryInterface::class => StoragePluginFactoryFactory::class, StorageAdapterFactory::class => StorageAdapterFactoryFactory::class, StorageAdapterFactoryInterface::class => StorageAdapterFactoryFactory::class, ], ]; if (class_exists(Command::class)) { $dependencies['factories'] += [ DeprecatedStorageFactoryConfigurationCheckCommand::class => DeprecatedStorageFactoryConfigurationCheckCommandFactory::class, ]; } return $dependencies; } /** * @return array */ public function getCliConfig(): array { if (! class_exists(Command::class)) { return []; } return [ 'commands' => [ DeprecatedStorageFactoryConfigurationCheckCommand::NAME => DeprecatedStorageFactoryConfigurationCheckCommand::class, ], ]; } }