Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize documentation #618

Merged
merged 16 commits into from
Mar 21, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Resources/doc/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ Sample Configuration
.. tip::

If each environment requires a different MongoDB connection URI, you can
define it in a separate parameter and reference it in the bundle config:
`define it as environment variable`_ and reference it in the bundle config:
SzymonKaminski marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: yaml

# app/config/parameters.yml
mongodb_server: mongodb://localhost:27017
# .env
MONGODB_URL=mongodb://localhost:27017

.. code-block:: yaml

# app/config/config.yml
# config/packages/doctrine_mongodb.yaml
doctrine_mongodb:
connections:
default:
server: "%mongodb_server%"
server: '%env(resolve:MONGODB_URL)%'

If you wish to use memcache to cache your metadata, you need to configure the
``Memcache`` instance; for example, you can do the following:
Expand Down
4 changes: 4 additions & 0 deletions Resources/doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ the MongoDB ODM across your application:
Please also make sure that the MongoDB server is running in the background.
For more details, see the MongoDB `Installation Tutorials`_.

.. tip::

You can configure bundle options that depend on where your application
is run (e.g. during tests or development) with `Environment Variables`_.

Authentication
--------------
Expand Down