1717use PhpDb \Adapter \Platform \PlatformInterface ;
1818use PhpDb \Adapter \Profiler \Profiler ;
1919use PhpDb \Adapter \Profiler \ProfilerInterface ;
20+ use PhpDb \Container \AdapterAbstractServiceFactory ;
2021use PhpDb \Container \AdapterManager ;
22+ use PhpDb \Container \ConnectionInterfaceFactoryFactoryInterface ;
23+ use PhpDb \Container \DriverInterfaceFactoryFactoryInterface ;
24+ use PhpDb \Container \MetadataFactory ;
25+ use PhpDb \Container \PlatformInterfaceFactoryFactoryInterface ;
2126use PhpDb \Metadata \MetadataInterface ;
2227use PhpDb \ResultSet ;
2328
@@ -34,6 +39,9 @@ public function __invoke(): array
3439 public function getDependencies (): array
3540 {
3641 return [
42+ 'abstract_factories ' => [
43+ AdapterAbstractServiceFactory::class,
44+ ],
3745 'aliases ' => [
3846 MetadataInterface::class => Metadata \Source \SqliteMetadata::class,
3947 ],
@@ -68,6 +76,9 @@ public function getAdapterManagerConfig(): array
6876 ResultInterface::class => Result::class,
6977 ResultSet \ResultSetInterface::class => ResultSet \ResultSet::class,
7078 StatementInterface::class => Statement::class,
79+ ConnectionInterfaceFactoryFactoryInterface::class => Container \ConnectionInterfaceFactoryFactory::class,
80+ DriverInterfaceFactoryFactoryInterface::class => Container \DriverInterfaceFactoryFactory::class,
81+ PlatformInterfaceFactoryFactoryInterface::class => Container \PlatformInterfaceFactoryFactory::class,
7182 ],
7283 'factories ' => [
7384 AdapterInterface::class => Container \AdapterFactory::class,
@@ -79,6 +90,14 @@ public function getAdapterManagerConfig(): array
7990 Profiler::class => InvokableFactory::class,
8091 ResultSet \ResultSet::class => InvokableFactory::class,
8192 ],
93+ 'invokables ' => [
94+ Container \ConnectionInterfaceFactoryFactory::class
95+ => Container \ConnectionInterfaceFactoryFactory::class,
96+ Container \DriverInterfaceFactoryFactory::class
97+ => Container \DriverInterfaceFactoryFactory::class,
98+ Container \PlatformInterfaceFactoryFactory::class
99+ => Container \PlatformInterfaceFactoryFactory::class,
100+ ],
82101 ];
83102 }
84103}
0 commit comments