Skip to content

Commit f86f59b

Browse files
committed
Rename MongoDB to MongoDb
1 parent a458c95 commit f86f59b

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

examples/rag/mongodb.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use MongoDB\Client as MongoDBClient;
12+
use MongoDB\Client as MongoDbClient;
1313
use Symfony\AI\Agent\Agent;
1414
use Symfony\AI\Agent\Toolbox\AgentProcessor;
1515
use Symfony\AI\Agent\Toolbox\Tool\SimilaritySearch;
@@ -20,7 +20,7 @@
2020
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
2121
use Symfony\AI\Platform\Message\Message;
2222
use Symfony\AI\Platform\Message\MessageBag;
23-
use Symfony\AI\Store\Bridge\MongoDB\Store;
23+
use Symfony\AI\Store\Bridge\MongoDb\Store;
2424
use Symfony\AI\Store\Document\Metadata;
2525
use Symfony\AI\Store\Document\TextDocument;
2626
use Symfony\AI\Store\Document\Vectorizer;
@@ -31,7 +31,7 @@
3131

3232
// initialize the store
3333
$store = new Store(
34-
client: new MongoDBClient(env('MONGODB_URI')),
34+
client: new MongoDbClient(env('MONGODB_URI')),
3535
databaseName: 'my-database',
3636
collectionName: 'my-collection',
3737
indexName: 'my-index',

src/ai-bundle/config/options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Config\Definition\Configurator;
1313

1414
use Codewithkyrian\ChromaDB\Client as ChromaDbClient;
15-
use MongoDB\Client as MongoDBClient;
15+
use MongoDB\Client as MongoDbClient;
1616
use Probots\Pinecone\Client as PineconeClient;
1717
use Symfony\AI\Platform\PlatformInterface;
1818
use Symfony\AI\Store\StoreInterface;
@@ -171,7 +171,7 @@
171171
->useAttributeAsKey('name')
172172
->arrayPrototype()
173173
->children()
174-
->scalarNode('client')->cannotBeEmpty()->defaultValue(MongoDBClient::class)->end()
174+
->scalarNode('client')->cannotBeEmpty()->defaultValue(MongoDbClient::class)->end()
175175
->scalarNode('database')->isRequired()->end()
176176
->scalarNode('collection')->isRequired()->end()
177177
->scalarNode('index_name')->isRequired()->end()

src/ai-bundle/src/AiBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
use Symfony\AI\Platform\ResultConverterInterface;
4040
use Symfony\AI\Store\Bridge\Azure\SearchStore as AzureSearchStore;
4141
use Symfony\AI\Store\Bridge\ChromaDb\Store as ChromaDbStore;
42-
use Symfony\AI\Store\Bridge\MongoDB\Store as MongoDBStore;
42+
use Symfony\AI\Store\Bridge\MongoDb\Store as MongoDbStore;
4343
use Symfony\AI\Store\Bridge\Pinecone\Store as PineconeStore;
4444
use Symfony\AI\Store\Document\Vectorizer;
4545
use Symfony\AI\Store\Indexer;
@@ -469,7 +469,7 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
469469
$arguments[5] = $store['bulk_write'];
470470
}
471471

472-
$definition = new Definition(MongoDBStore::class);
472+
$definition = new Definition(MongoDbStore::class);
473473
$definition
474474
->addTag('ai.store')
475475
->setArguments($arguments);

src/store/src/Bridge/MongoDB/Store.php renamed to src/store/src/Bridge/MongoDb/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\AI\Store\Bridge\MongoDB;
12+
namespace Symfony\AI\Store\Bridge\MongoDb;
1313

1414
use MongoDB\BSON\Binary;
1515
use MongoDB\Client;

src/store/tests/Bridge/MongoDB/StoreTest.php renamed to src/store/tests/Bridge/MongoDb/StoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\AI\Store\Tests\Bridge\MongoDB;
12+
namespace Symfony\AI\Store\Tests\Bridge\MongoDb;
1313

1414
use MongoDB\BSON\Binary;
1515
use MongoDB\Client;
@@ -20,7 +20,7 @@
2020
use PHPUnit\Framework\TestCase;
2121
use Psr\Log\NullLogger;
2222
use Symfony\AI\Platform\Vector\Vector;
23-
use Symfony\AI\Store\Bridge\MongoDB\Store;
23+
use Symfony\AI\Store\Bridge\MongoDb\Store;
2424
use Symfony\AI\Store\Document\Metadata;
2525
use Symfony\AI\Store\Document\VectorDocument;
2626
use Symfony\AI\Store\Exception\InvalidArgumentException;

0 commit comments

Comments
 (0)