File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,6 +135,20 @@ public function unsetAuth()
135135 $ this ->auth = null ;
136136 }
137137
138+ /**
139+ * Creates a Connector instance that can be used to establish TCP connections to remote hosts.
140+ *
141+ * This return a new `Connector` instance which can then be used to establish
142+ * any number of TCP connections.
143+ *
144+ * @return Connector
145+ * @see Connector
146+ */
147+ public function createConnector ()
148+ {
149+ return new Connector ($ this );
150+ }
151+
138152 /**
139153 * Creates a SecureConnector instance that can be used to establish encrypted TLS connections to remote hosts.
140154 *
@@ -150,20 +164,6 @@ public function createSecureConnector()
150164 return new SecureConnector ($ this ->createConnector (), $ this ->loop );
151165 }
152166
153- /**
154- * Creates a Connector instance that can be used to establish TCP connections to remote hosts.
155- *
156- * This return a new `Connector` instance which can then be used to establish
157- * any number of TCP connections.
158- *
159- * @return Connector
160- * @see Connector
161- */
162- public function createConnector ()
163- {
164- return new Connector ($ this );
165- }
166-
167167 /**
168168 * Should not be called directly, use createConnector() instead.
169169 *
You can’t perform that action at this time.
0 commit comments