From 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 17 Nov 2019 20:45:02 +0100 Subject: initial checking of customized version 1.0rc9 --- .../Guzzle/Service/Command/Factory/MapFactory.php | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 vendor/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php (limited to 'vendor/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php') diff --git a/vendor/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php b/vendor/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php new file mode 100644 index 0000000..0ad80bc --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php @@ -0,0 +1,27 @@ +map = $map; + } + + public function factory($name, array $args = array()) + { + if (isset($this->map[$name])) { + $class = $this->map[$name]; + + return new $class($args); + } + } +} -- cgit v1.2.3-54-g00ecf