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

+3-3
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)