diff --git a/src/Rocketeer/Services/Config/Definition/ConnectionsDefinition.php b/src/Rocketeer/Services/Config/Definition/ConnectionsDefinition.php index 8475197a9..6589c9c7d 100644 --- a/src/Rocketeer/Services/Config/Definition/ConnectionsDefinition.php +++ b/src/Rocketeer/Services/Config/Definition/ConnectionsDefinition.php @@ -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() diff --git a/src/Rocketeer/Services/Connections/Credentials/Keys/ConnectionKey.php b/src/Rocketeer/Services/Connections/Credentials/Keys/ConnectionKey.php index a5b05d5f8..ade9888e7 100644 --- a/src/Rocketeer/Services/Connections/Credentials/Keys/ConnectionKey.php +++ b/src/Rocketeer/Services/Connections/Credentials/Keys/ConnectionKey.php @@ -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 diff --git a/src/Rocketeer/Services/Filesystem/ConnectionKeyAdapterFactory.php b/src/Rocketeer/Services/Filesystem/ConnectionKeyAdapterFactory.php index ab7fca4ee..08129919e 100644 --- a/src/Rocketeer/Services/Filesystem/ConnectionKeyAdapterFactory.php +++ b/src/Rocketeer/Services/Filesystem/ConnectionKeyAdapterFactory.php @@ -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,