Skip to content

Commit 335c2ad

Browse files
committed
minor #20558 [Doctrine] Use PDO constants in XML configuration example (phansys)
This PR was merged into the 7.2 branch. Discussion ---------- [Doctrine] Use PDO constants in XML configuration example Follows #20557, in this case for XML. See symfony/symfony#58035. I guess this PR should be merged after merging the 7.1 branch. Commits ------- c880a88 [Doctrine] Use PDO constants in XML configuration example
2 parents fefb404 + c880a88 commit 335c2ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/configuration/doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,9 @@ set up the connection using environment variables for the certificate paths:
507507
server-version="8.0.31"
508508
driver="pdo_mysql">
509509
510-
<doctrine:option key="1007">%env(MYSQL_SSL_KEY)%</doctrine:option>
511-
<doctrine:option key="1008">%env(MYSQL_SSL_CERT)%</doctrine:option>
512-
<doctrine:option key="1009">%env(MYSQL_SSL_CA)%</doctrine:option>
510+
<doctrine:option key-type="constant" key="PDO::MYSQL_ATTR_SSL_KEY">%env(MYSQL_SSL_KEY)%</doctrine:option>
511+
<doctrine:option key-type="constant" key="PDO::MYSQL_ATTR_SSL_CERT">%env(MYSQL_SSL_CERT)%</doctrine:option>
512+
<doctrine:option key-type="constant" key="PDO::MYSQL_ATTR_SSL_CA">%env(MYSQL_SSL_CA)%</doctrine:option>
513513
</doctrine:dbal>
514514
</doctrine:config>
515515
</container>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy