@@ -49,9 +49,9 @@ Sample Configuration
49
49
50
50
.. code-block :: php
51
51
52
+ use Symfony\Config\DoctrineMongodbConfig;
52
53
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
53
54
use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
54
- use Symfony\Config\DoctrineMongodbConfig;
55
55
56
56
return static function (DoctrineMongodbConfig $config): void {
57
57
$config->connection('default')
@@ -142,9 +142,9 @@ If you wish to use memcached to cache your metadata, you need to configure the
142
142
143
143
.. code-block :: php
144
144
145
- use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
146
145
use Symfony\Component\Cache\Adapter\MemcachedAdapter;
147
146
use Symfony\Config\DoctrineMongodbConfig;
147
+ use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
148
148
149
149
return static function (DoctrineMongodbConfig $config): void {
150
150
$config->defaultDatabase('hello_' . param('kernel.environment'));
@@ -260,8 +260,8 @@ The following configuration shows a bunch of mapping examples:
260
260
261
261
.. code-block :: php
262
262
263
- use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
264
263
use Symfony\Config\DoctrineMongodbConfig;
264
+ use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
265
265
266
266
return static function (DoctrineMongodbConfig $config): void {
267
267
$config->documentManager('default')
@@ -475,8 +475,8 @@ following syntax:
475
475
476
476
.. code-block :: php
477
477
478
- use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
479
478
use Symfony\Config\DoctrineMongodbConfig;
479
+ use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
480
480
481
481
return static function (DoctrineMongodbConfig $config): void {
482
482
$config->defaultDatabase('hello_' . param('kernel.environment'));
0 commit comments