Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
a140a694
Commit
a140a694
authored
Apr 22, 2013
by
Julio Montoya
Committed by
Fabien Potencier
Apr 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding "port" option in DoctrineServiceProvider
parent
1cd7f3f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
doc/providers/doctrine.rst
doc/providers/doctrine.rst
+4
-1
src/Silex/Provider/DoctrineServiceProvider.php
src/Silex/Provider/DoctrineServiceProvider.php
+1
-0
No files found.
doc/providers/doctrine.rst
View file @
a140a694
...
@@ -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>`_.
...
...
src/Silex/Provider/DoctrineServiceProvider.php
View file @
a140a694
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment