Skip to content

Commit

Permalink
Replace sample configuration from flex recipes examples
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jan 8, 2024
1 parent d1f9700 commit c26bbca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Sample Configuration
document_managers:
default:
mappings:
App: ~
filters:
filter-name:
class: Class\Example\Filter\ODM\ExampleFilter
enabled: true
App:
is_bundle: false
dir: '%kernel.project_dir%/src/Document'
prefix: 'App\Document'
alias: App
metadata_cache_driver: array # array, service, apcu, memcached, redis
.. code-block:: xml
Expand All @@ -41,8 +41,7 @@ Sample Configuration
</doctrine_mongodb:options>
</doctrine_mongodb:connection>
<doctrine_mongodb:document-manager id="default">
<doctrine_mongodb:mapping name="App" />
<doctrine_mongodb:filter name="filter-name" enabled="true" class="Class\Example\Filter\ODM\ExampleFilter" />
<doctrine_mongodb:mapping name="App" is-bundle="false" prefix="App\Document" alias: "App"/>

Check failure on line 44 in docs/config.rst

View workflow job for this annotation

GitHub Actions / DOCtor-RST

Please add space before "/>"
<doctrine_mongodb:metadata-cache-driver type="array" />
</doctrine_mongodb:document-manager>
</doctrine_mongodb:config>
Expand All @@ -62,9 +61,10 @@ Sample Configuration
$config->defaultDatabase('hello_' . param('kernel.environment'));
$config->documentManager('default')
->mapping('App')
->filter('filter-name')
->class(\Class\Example\Filter\ODM\ExampleFilter::class)
->enabled(true)
->isBundle(false)
->dir(param('kernel.project_dir') . '/src/Document')
->prefix('App\\Document')
->alias('App')
->metadataCacheDriver('array'); // array, service, apcu, memcached, redis
};
}
Expand Down

0 comments on commit c26bbca

Please sign in to comment.