Commit a140a694 authored by Julio Montoya's avatar Julio Montoya Committed by Fabien Potencier

Adding "port" option in DoctrineServiceProvider

parent 1cd7f3f0
...@@ -29,12 +29,15 @@ Parameters ...@@ -29,12 +29,15 @@ Parameters
* **password**: The password of the database to connect to. * **password**: The password of the database to connect to.
* **charset**: Only relevant for ``pdo_mysql``, ``pdo_oci`` and ``oci8``, * **charset**: Only relevant for ``pdo_mysql``, and ``pdo_oci/oci8``,
specifies the charset used when connecting to the database. specifies the charset used when connecting to the database.
* **path**: Only relevant for ``pdo_sqlite``, specifies the path to * **path**: Only relevant for ``pdo_sqlite``, specifies the path to
the SQLite database. the SQLite database.
* **port**: Only relevant for ``pdo_mysql``, ``pdo_pgsql``, and ``pdo_oci/oci8``,
specifies the port of the database to connect to.
These and additional options are described in detail in the `Doctrine DBAL These and additional options are described in detail in the `Doctrine DBAL
configuration documentation <http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html>`_. configuration documentation <http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html>`_.
......
...@@ -33,6 +33,7 @@ class DoctrineServiceProvider implements ServiceProviderInterface ...@@ -33,6 +33,7 @@ class DoctrineServiceProvider implements ServiceProviderInterface
'host' => 'localhost', 'host' => 'localhost',
'user' => 'root', 'user' => 'root',
'password' => null, 'password' => null,
'port' => null,
); );
$app['dbs.options.initializer'] = $app->protect(function () use ($app) { $app['dbs.options.initializer'] = $app->protect(function () use ($app) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment