aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/php/vendor/react/socket/src/FixedUriConnector.php
diff options
context:
space:
mode:
authormarvin-borner@live.com2018-04-16 21:09:05 +0200
committermarvin-borner@live.com2018-04-16 21:09:05 +0200
commitcf14306c2b3f82a81f8d56669a71633b4d4b5fce (patch)
tree86700651aa180026e89a66064b0364b1e4346f3f /assets/php/vendor/react/socket/src/FixedUriConnector.php
parent619b01b3615458c4ed78bfaeabb6b1a47cc8ad8b (diff)
Main merge to user management system - files are now at /main/public/
Diffstat (limited to 'assets/php/vendor/react/socket/src/FixedUriConnector.php')
-rwxr-xr-xassets/php/vendor/react/socket/src/FixedUriConnector.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/assets/php/vendor/react/socket/src/FixedUriConnector.php b/assets/php/vendor/react/socket/src/FixedUriConnector.php
deleted file mode 100755
index 057bcdf..0000000
--- a/assets/php/vendor/react/socket/src/FixedUriConnector.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-namespace React\Socket;
-
-/**
- * Decorates an existing Connector to always use a fixed, preconfigured URI
- *
- * This can be useful for consumers that do not support certain URIs, such as
- * when you want to explicitly connect to a Unix domain socket (UDS) path
- * instead of connecting to a default address assumed by an higher-level API:
- *
- * ```php
- * $connector = new FixedUriConnector(
- * 'unix:///var/run/docker.sock',
- * new UnixConnector($loop)
- * );
- *
- * // destination will be ignored, actually connects to Unix domain socket
- * $promise = $connector->connect('localhost:80');
- * ```
- */
-class FixedUriConnector implements ConnectorInterface
-{
- private $uri;
- private $connector;
-
- /**
- * @param string $uri
- * @param ConnectorInterface $connector
- */
- public function __construct($uri, ConnectorInterface $connector)
- {
- $this->uri = $uri;
- $this->connector = $connector;
- }
-
- public function connect($_)
- {
- return $this->connector->connect($this->uri);
- }
-}