Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

added port support to config #757

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ protected function getConnectionNode($node, Fluent $connection)
->prototype('array')
->children()
->scalarNode('host')->defaultValue($connection->host)->end()
->scalarNode('port')->defaultValue($connection->port)->end()
->scalarNode('username')->defaultValue($connection->username)->end()
->scalarNode('password')->defaultValue($connection->password)->end()
->scalarNode('key')->defaultValue($connection->key)->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Represents a connection's identity and its credential.
*
* @property string $host
* @property string $port
* @property string $username
* @property string $password
* @property string $key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function getAdapter(ConnectionKey $connectionKey)

return new $adapter([
'host' => $connectionKey->host,
'port' => $connectionKey->port,
'username' => $connectionKey->username,
'password' => $connectionKey->password,
'privateKey' => $connectionKey->key,
Expand Down