From dc930bcacbf0b6f5650af108da30e70d558a2d38 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 30 Jan 2019 08:59:07 +0100 Subject: [PATCH 1/2] Added some missing contents to an XML config sample --- Resources/doc/configuration.rst | 99 ++++++++++++++++++--------------- 1 file changed, 53 insertions(+), 46 deletions(-) diff --git a/Resources/doc/configuration.rst b/Resources/doc/configuration.rst index 7be62e679..cc7ecf67b 100644 --- a/Resources/doc/configuration.rst +++ b/Resources/doc/configuration.rst @@ -993,52 +993,59 @@ can configure. The following block shows all possible configuration keys: .. code-block:: xml - - - - - - dbname="database" - host="localhost" - port="1234" - user="user" - password="secret" - driver="pdo_mysql" - driver-class="MyNamespace\MyDriverImpl" - path="%kernel.project_dir%/var/data.db" - memory="true" - unix-socket="/tmp/mysql.sock" - persistent="true" - multiple-active-result-sets="true" - pooled="true" - protocol="TCPIP" - server="my_database_server" - service="true" - servicename="MyOracleServiceName" - sessionMode"2" - default_dbname="database" - sslmode="require" - sslrootcert="postgresql-ca.pem" - sslcert="postgresql-cert.pem" - sslkey="postgresql-key.pem" - sslcrl="postgresql.crl" - wrapper-class="MyDoctrineDbalConnectionWrapper" - charset="UTF8" - logging="%kernel.debug%" - platform-service="MyOwnDatabasePlatformService" - auto-commit="false" - schema-filter="^sf2_" - > - bar - string - utf8 - utf8_unicode_ci - InnoDB - Acme\HelloBundle\MyCustomType - - + + + + + + dbname="database" + host="localhost" + port="1234" + user="user" + password="secret" + driver="pdo_mysql" + driver-class="MyNamespace\MyDriverImpl" + path="%kernel.project_dir%/var/data.db" + memory="true" + unix-socket="/tmp/mysql.sock" + persistent="true" + multiple-active-result-sets="true" + pooled="true" + protocol="TCPIP" + server="my_database_server" + service="true" + servicename="MyOracleServiceName" + sessionMode"2" + default_dbname="database" + sslmode="require" + sslrootcert="postgresql-ca.pem" + sslcert="postgresql-cert.pem" + sslkey="postgresql-key.pem" + sslcrl="postgresql.crl" + wrapper-class="MyDoctrineDbalConnectionWrapper" + charset="UTF8" + logging="%kernel.debug%" + platform-service="MyOwnDatabasePlatformService" + auto-commit="false" + schema-filter="^sf2_" + > + bar + string + utf8 + utf8_unicode_ci + InnoDB + Acme\HelloBundle\MyCustomType + + + If you want to configure multiple connections in YAML, put them under the ``connections`` key and give them a unique name: From 29f56c0b0e282e7cf661420072e33247f1fd1e7a Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Tue, 5 Feb 2019 19:51:55 +0100 Subject: [PATCH 2/2] Move attribute explanations to the top of the section --- Resources/doc/configuration.rst | 65 +++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 16 deletions(-) diff --git a/Resources/doc/configuration.rst b/Resources/doc/configuration.rst index cc7ecf67b..d8e2d83a7 100644 --- a/Resources/doc/configuration.rst +++ b/Resources/doc/configuration.rst @@ -1003,9 +1003,42 @@ can configure. The following block shows all possible configuration keys: http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd"> + + + + + + + + url="mysql://user:secret@localhost:1234/otherdatabase" dbname="database" host="localhost" port="1234" @@ -1013,23 +1046,23 @@ can configure. The following block shows all possible configuration keys: password="secret" driver="pdo_mysql" driver-class="MyNamespace\MyDriverImpl" - path="%kernel.project_dir%/var/data.db" - memory="true" + path="%kernel.project_dir%/var/data.db" + memory="true" unix-socket="/tmp/mysql.sock" persistent="true" - multiple-active-result-sets="true" - pooled="true" - protocol="TCPIP" - server="my_database_server" - service="true" - servicename="MyOracleServiceName" - sessionMode"2" - default_dbname="database" - sslmode="require" - sslrootcert="postgresql-ca.pem" - sslcert="postgresql-cert.pem" - sslkey="postgresql-key.pem" - sslcrl="postgresql.crl" + multiple-active-result-sets="true" + pooled="true" + protocol="TCPIP" + server="my_database_server" + service="true" + servicename="MyOracleServiceName" + sessionMode="2" + default_dbname="database" + sslmode="require" + sslrootcert="postgresql-ca.pem" + sslcert="postgresql-cert.pem" + sslkey="postgresql-key.pem" + sslcrl="postgresql.crl" wrapper-class="MyDoctrineDbalConnectionWrapper" charset="UTF8" logging="%kernel.debug%"