Skip to content

Commit 9814761

Browse files
committed
Merge branch '4.4'
* 4.4: [Doctrine] Reword the intro of the main article rename SmtpEnvelope to Envelope Fix typo in configuration.rst
2 parents 3b0eb6b + b7fcaba commit 9814761

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

components/mailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ If you want to send emails asynchronously, install the :doc:`Messenger component
125125
126126
Then, instantiate and pass a ``MessageBus`` as a second argument to ``Mailer``::
127127

128+
use Symfony\Component\Mailer\Envelope;
128129
use Symfony\Component\Mailer\Mailer;
129130
use Symfony\Component\Mailer\Messenger\MessageHandler;
130131
use Symfony\Component\Mailer\Messenger\SendEmailMessage;
131-
use Symfony\Component\Mailer\SmtpEnvelope;
132132
use Symfony\Component\Mailer\Transport;
133133
use Symfony\Component\Messenger\Handler\HandlersLocator;
134134
use Symfony\Component\Messenger\MessageBus;
@@ -150,7 +150,7 @@ Then, instantiate and pass a ``MessageBus`` as a second argument to ``Mailer``::
150150
$mailer->send($email);
151151

152152
// you can pass an optional Envelope
153-
$mailer->send($email, new SmtpEnvelope(
153+
$mailer->send($email, new Envelope(
154154
new Address('sender@example.com'),
155155
[
156156
new Address('recipient@example.com'),

configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ In order to define the actual values of env vars, Symfony proposes different
505505
solutions depending if the application is running in production or in your local
506506
development machine.
507507

508-
Independent from the way you set environmnet variables, you may need to run the
508+
Independent from the way you set environment variables, you may need to run the
509509
``debug:container`` command with the ``--env-vars`` option to verify that they
510510
are defined and have the expected values:
511511

doctrine.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ Databases and the Doctrine ORM
99

1010
Do you prefer video tutorials? Check out the `Doctrine screencast series`_.
1111

12-
Symfony doesn't provide a component to work with the database, but it *does* provide
13-
tight integration with a third-party library called `Doctrine`_.
12+
Symfony provides all the tools you need to use databases in your applications
13+
thanks to `Doctrine`_, the best set of PHP libraries to work with databases.
14+
These tools support relational databases like MySQL and PostgreSQL and also
15+
NoSQL databases like MongoDB.
1416

15-
.. note::
16-
17-
This article is all about using the Doctrine ORM. If you prefer to use raw
18-
database queries, see the ":doc:`/doctrine/dbal`" article instead.
17+
Databases are a broad topic, so the documentation is divided in three articles:
1918

20-
You can also persist data to `MongoDB`_ using Doctrine ODM library. See the
21-
"`DoctrineMongoDBBundle`_" documentation.
19+
* This article explains the recommended way to work with **relational databases**
20+
in Symfony applications;
21+
* Read :doc:`this other article </doctrine/dbal>` if you need **low-level access**
22+
to perform raw SQL queries to relational databases (similar to PHP's `PDO`_);
23+
* Read `DoctrineMongoDBBundle docs`_ if you are working with **MongoDB databases**.
2224

2325
Installing Doctrine
2426
-------------------
@@ -869,12 +871,11 @@ Learn more
869871

870872
.. _`Doctrine`: http://www.doctrine-project.org/
871873
.. _`RFC 3986`: https://www.ietf.org/rfc/rfc3986.txt
872-
.. _`MongoDB`: https://www.mongodb.org/
873874
.. _`Doctrine's Mapping Types documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html
874875
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html
875876
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html
876877
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#quoting-reserved-words
877-
.. _`DoctrineMongoDBBundle`: https://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
878+
.. _`DoctrineMongoDBBundle docs`: https://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
878879
.. _`DoctrineFixturesBundle`: https://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html
879880
.. _`Transactions and Concurrency`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/transactions-and-concurrency.html
880881
.. _`DoctrineMigrationsBundle`: https://github.com/doctrine/DoctrineMigrationsBundle
@@ -884,3 +885,4 @@ Learn more
884885
.. _`limit of 767 bytes for the index key prefix`: https://dev.mysql.com/doc/refman/5.6/en/innodb-restrictions.html
885886
.. _`Doctrine screencast series`: https://symfonycasts.com/screencast/symfony-doctrine
886887
.. _`API Platform`: https://api-platform.com/docs/core/validation/
888+
.. _`PDO`: https://php.net/pdo

0 commit comments

Comments
 (0)