Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7060171

Browse files
committed
minor#20557 [Doctrine] Use PDO constants in YAML configuration example (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 containsthe bug (seehttps://symfony.com/releases for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `7.x` for features of unreleased versions).-->Commits-------1960c77 [Doctrine] Use PDO constants in YAML configuration example
2 parents3d5ba0e +1960c77 commit7060171

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎reference/configuration/doctrine.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,12 @@ set up the connection using environment variables for the certificate paths:
483483
server_version:'8.0.31'
484484
driver:'pdo_mysql'
485485
options:
486-
# SSL private key (PDO::MYSQL_ATTR_SSL_KEY)
487-
1007:'%env(MYSQL_SSL_KEY)%'
488-
# SSL certificate (PDO::MYSQL_ATTR_SSL_CERT)
489-
1008:'%env(MYSQL_SSL_CERT)%'
490-
# SSL CA authority (PDO::MYSQL_ATTR_SSL_CA)
491-
1009:'%env(MYSQL_SSL_CA)%'
486+
# SSL private key
487+
!php/const 'PDO::MYSQL_ATTR_SSL_KEY': '%env(MYSQL_SSL_KEY)%'
488+
# SSL certificate
489+
!php/const 'PDO::MYSQL_ATTR_SSL_CERT': '%env(MYSQL_SSL_CERT)%'
490+
# SSL CA authority
491+
!php/const 'PDO::MYSQL_ATTR_SSL_CA': '%env(MYSQL_SSL_CA)%'
492492
493493
..code-block::xml
494494

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp