summaryrefslogtreecommitdiff
path: root/src/Support
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-04-28 13:57:52 +0200
committerDaniel Weipert <code@drogueronin.de>2021-04-28 13:57:52 +0200
commitd91225375883a85fa6fddccc9ac00103e1d32eac (patch)
treed1b9e13e7f00aabce7ad310a1d43c30dc92e3a88 /src/Support
parentf7fc6fd54a5f750de8144b9b05d5ac173470c70a (diff)
Reconnects after ssh timeoutv1.0.0
Diffstat (limited to 'src/Support')
-rw-r--r--src/Support/SingletonTraitWithArguments.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/Support/SingletonTraitWithArguments.php b/src/Support/SingletonTraitWithArguments.php
deleted file mode 100644
index 2ac0653..0000000
--- a/src/Support/SingletonTraitWithArguments.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-namespace PHPIAC\Support;
-
-use PetrKnap\Php\Singleton\SingletonTrait;
-
-trait SingletonTraitWithArguments
-{
- use SingletonTrait;
-
- /**
- * @param mixed ...$arguments
- *
- * @return self
- */
- public static function getInstance(mixed ...$arguments)
- {
- $self = get_called_class();
- if (! isset(self::$instances[$self])) {
- self::$instances[$self] = new $self(...$arguments);
- }
-
- return self::$instances[$self];
- }
-}