You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/configuration/doctrine.rst
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,9 @@ the path of the bundle.
473
473
SSL Connection with MySQL
474
474
~~~~~~~~~~~~~~~~~~~~~~~~~
475
475
476
-
If you want to configure a secure SSL connection to MySQL in your Symfony application using Doctrine, you need to set specific options for the SSL certificates. Here's how to configure the connection using environment variables for the certificate paths:
476
+
To securely configure an SSL connection to MySQL in your Symfony application
477
+
with Doctrine, you need to specify the SSL certificate options. Here's how to
478
+
set up the connection using environment variables for the certificate paths:
477
479
478
480
.. configuration-block::
479
481
@@ -516,7 +518,27 @@ If you want to configure a secure SSL connection to MySQL in your Symfony applic
516
518
</doctrine:config>
517
519
</container>
518
520
519
-
Make sure that your environment variables are correctly set in your ``.env.local`` or ``.env.local.php`` file as follows:
521
+
.. code-block:: php
522
+
523
+
// config/packages/doctrine.php
524
+
use Symfony\Config\DoctrineConfig;
525
+
526
+
return static function (DoctrineConfig $doctrine): void {
0 commit comments