Skip to content

Commit

Permalink
minor #20557 [Doctrine] Use PDO constants in YAML configuration examp…
Browse files Browse the repository at this point in the history
…le (phansys)

This PR was merged into the 7.1 branch.

Discussion
----------

[Doctrine] Use PDO constants in YAML configuration example

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `7.x` for features of unreleased versions).

-->

Commits
-------

1960c77 [Doctrine] Use PDO constants in YAML configuration example
  • Loading branch information
javiereguiluz committed Jan 13, 2025
2 parents 3d5ba0e + 1960c77 commit 7060171
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions reference/configuration/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ set up the connection using environment variables for the certificate paths:
server_version: '8.0.31'
driver: 'pdo_mysql'
options:
# SSL private key (PDO::MYSQL_ATTR_SSL_KEY)
1007: '%env(MYSQL_SSL_KEY)%'
# SSL certificate (PDO::MYSQL_ATTR_SSL_CERT)
1008: '%env(MYSQL_SSL_CERT)%'
# SSL CA authority (PDO::MYSQL_ATTR_SSL_CA)
1009: '%env(MYSQL_SSL_CA)%'
# SSL private key
!php/const 'PDO::MYSQL_ATTR_SSL_KEY': '%env(MYSQL_SSL_KEY)%'
# SSL certificate
!php/const 'PDO::MYSQL_ATTR_SSL_CERT': '%env(MYSQL_SSL_CERT)%'
# SSL CA authority
!php/const 'PDO::MYSQL_ATTR_SSL_CA': '%env(MYSQL_SSL_CA)%'
.. code-block:: xml
Expand Down

0 comments on commit 7060171

Please sign in to comment.