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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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