@@ -3515,22 +3515,24 @@ public function testVektorStoreCanBeConfigured()
35153515 $ container = $ this ->buildContainer ([
35163516 'ai ' => [
35173517 'store ' => [
3518- 'vektor ' => [],
3518+ 'vektor ' => [
3519+ 'main ' => [],
3520+ ],
35193521 ],
35203522 ],
35213523 ]);
35223524
3523- $ this ->assertTrue ($ container ->hasDefinition ('ai.store.vektor.vektor ' ));
3525+ $ this ->assertTrue ($ container ->hasDefinition ('ai.store.vektor.main ' ));
35243526
3525- $ definition = $ container ->getDefinition ('ai.store.vektor.vektor ' );
3527+ $ definition = $ container ->getDefinition ('ai.store.vektor.main ' );
35263528 $ this ->assertSame (VektorStore::class, $ definition ->getClass ());
3527-
35283529 $ this ->assertTrue ($ definition ->isLazy ());
3530+
35293531 $ this ->assertCount (3 , $ definition ->getArguments ());
3530- $ this ->assertSame ('%kernel.projet_dir /var/shared ' , $ definition ->getArgument (0 ));
3532+ $ this ->assertSame ('%kernel.project_dir% /var/share ' , $ definition ->getArgument (0 ));
35313533 $ this ->assertSame (1536 , $ definition ->getArgument (1 ));
3532- $ this ->assertInstanceOf (Reference::class, $ definition ->getArgument (0 ));
3533- $ this ->assertSame ('filesystem ' , (string ) $ definition ->getArgument (0 ));
3534+ $ this ->assertInstanceOf (Reference::class, $ definition ->getArgument (2 ));
3535+ $ this ->assertSame ('filesystem ' , (string ) $ definition ->getArgument (2 ));
35343536
35353537 $ this ->assertTrue ($ definition ->hasTag ('proxy ' ));
35363538 $ this ->assertSame ([
@@ -3539,33 +3541,34 @@ public function testVektorStoreCanBeConfigured()
35393541 ], $ definition ->getTag ('proxy ' ));
35403542 $ this ->assertTrue ($ definition ->hasTag ('ai.store ' ));
35413543
3542- $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor ' ));
3543- $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektor ' ));
3544- $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor_vektor ' ));
3545- $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektorVektor ' ));
3544+ $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $main ' ));
3545+ $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor_main ' ));
3546+ $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektorMain ' ));
35463547 $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface ' ));
35473548
35483549 $ container = $ this ->buildContainer ([
35493550 'ai ' => [
35503551 'store ' => [
35513552 'vektor ' => [
3552- 'storage_path ' => '%kernel.project_dir%/var/shared ' ,
3553+ 'main ' => [
3554+ 'storage_path ' => '%kernel.project_dir%/var/share/vektor ' ,
3555+ ],
35533556 ],
35543557 ],
35553558 ],
35563559 ]);
35573560
3558- $ this ->assertTrue ($ container ->hasDefinition ('ai.store.vektor.vektor ' ));
3561+ $ this ->assertTrue ($ container ->hasDefinition ('ai.store.vektor.main ' ));
35593562
3560- $ definition = $ container ->getDefinition ('ai.store.vektor.vektor ' );
3563+ $ definition = $ container ->getDefinition ('ai.store.vektor.main ' );
35613564 $ this ->assertSame (VektorStore::class, $ definition ->getClass ());
3562-
35633565 $ this ->assertTrue ($ definition ->isLazy ());
3566+
35643567 $ this ->assertCount (3 , $ definition ->getArguments ());
3565- $ this ->assertSame ('%kernel.project_dir%/var/shared ' , $ definition ->getArgument (0 ));
3568+ $ this ->assertSame ('%kernel.project_dir%/var/share/vektor ' , $ definition ->getArgument (0 ));
35663569 $ this ->assertSame (1536 , $ definition ->getArgument (1 ));
3567- $ this ->assertInstanceOf (Reference::class, $ definition ->getArgument (0 ));
3568- $ this ->assertSame ('filesystem ' , (string ) $ definition ->getArgument (0 ));
3570+ $ this ->assertInstanceOf (Reference::class, $ definition ->getArgument (2 ));
3571+ $ this ->assertSame ('filesystem ' , (string ) $ definition ->getArgument (2 ));
35693572
35703573 $ this ->assertTrue ($ definition ->hasTag ('proxy ' ));
35713574 $ this ->assertSame ([
@@ -3574,33 +3577,34 @@ public function testVektorStoreCanBeConfigured()
35743577 ], $ definition ->getTag ('proxy ' ));
35753578 $ this ->assertTrue ($ definition ->hasTag ('ai.store ' ));
35763579
3577- $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor ' ));
3578- $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektor ' ));
3579- $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor_vektor ' ));
3580- $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektorVektor ' ));
3580+ $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $main ' ));
3581+ $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor_main ' ));
3582+ $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektorMain ' ));
35813583 $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface ' ));
35823584
35833585 $ container = $ this ->buildContainer ([
35843586 'ai ' => [
35853587 'store ' => [
35863588 'vektor ' => [
3587- 'dimensions ' => 764 ,
3589+ 'main ' => [
3590+ 'dimensions ' => 764 ,
3591+ ],
35883592 ],
35893593 ],
35903594 ],
35913595 ]);
35923596
3593- $ this ->assertTrue ($ container ->hasDefinition ('ai.store.vektor.vektor ' ));
3597+ $ this ->assertTrue ($ container ->hasDefinition ('ai.store.vektor.main ' ));
35943598
3595- $ definition = $ container ->getDefinition ('ai.store.vektor.vektor ' );
3599+ $ definition = $ container ->getDefinition ('ai.store.vektor.main ' );
35963600 $ this ->assertSame (VektorStore::class, $ definition ->getClass ());
3597-
35983601 $ this ->assertTrue ($ definition ->isLazy ());
3602+
35993603 $ this ->assertCount (3 , $ definition ->getArguments ());
3600- $ this ->assertSame ('%kernel.project_dir%/var/shared ' , $ definition ->getArgument (0 ));
3604+ $ this ->assertSame ('%kernel.project_dir%/var/share ' , $ definition ->getArgument (0 ));
36013605 $ this ->assertSame (764 , $ definition ->getArgument (1 ));
3602- $ this ->assertInstanceOf (Reference::class, $ definition ->getArgument (0 ));
3603- $ this ->assertSame ('filesystem ' , (string ) $ definition ->getArgument (0 ));
3606+ $ this ->assertInstanceOf (Reference::class, $ definition ->getArgument (2 ));
3607+ $ this ->assertSame ('filesystem ' , (string ) $ definition ->getArgument (2 ));
36043608
36053609 $ this ->assertTrue ($ definition ->hasTag ('proxy ' ));
36063610 $ this ->assertSame ([
@@ -3609,10 +3613,9 @@ public function testVektorStoreCanBeConfigured()
36093613 ], $ definition ->getTag ('proxy ' ));
36103614 $ this ->assertTrue ($ definition ->hasTag ('ai.store ' ));
36113615
3612- $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor ' ));
3613- $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektor ' ));
3614- $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor_vektor ' ));
3615- $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektorVektor ' ));
3616+ $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $main ' ));
3617+ $ this ->assertTrue ($ container ->hasAlias ('.Symfony\AI\Store\StoreInterface $vektor_main ' ));
3618+ $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface $vektorMain ' ));
36163619 $ this ->assertTrue ($ container ->hasAlias ('Symfony\AI\Store\StoreInterface ' ));
36173620 }
36183621
0 commit comments