Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
updraftplus
/
vendor
/
guzzle
/
guzzle
/
src
/
Guzzle
/
Service
/
Command
/
Factory
:
MapFactory.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Guzzle\Service\Command\Factory; /** * Command factory used when explicitly mapping strings to command classes */ class MapFactory implements FactoryInterface { /** @var array Associative array mapping command names to classes */ protected $map; /** @param array $map Associative array mapping command names to classes */ public function __construct(array $map) { $this->map = $map; } public function factory($name, array $args = array()) { if (isset($this->map[$name])) { $class = $this->map[$name]; return new $class($args); } } }