File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/guzzle/guzzle/src/Guzzle/Service/Command/FactoryLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: ConcreteClassFactory.php <?php namespace Guzzle\Service\Command\Factory; use Guzzle\Inflection\InflectorInterface; use Guzzle\Inflection\Inflector; use Guzzle\Service\ClientInterface; /** * Command factory used to create commands referencing concrete command classes */ class ConcreteClassFactory implements FactoryInterface { /** @var ClientInterface */ protected $client; /** @var InflectorInterface */ protected $inflector; /** * @param ClientInterface $client Client that owns the commands * @param InflectorInterface $inflector Inflector used to resolve class names */ public function __construct(ClientInterface $client, InflectorInterface $inflector = null) { $this->client = $client; $this->inflector = $inflector ?: Inflector::getDefault(); } public function factory($name, array $args = array()) { // Determine the class to instantiate based on the namespace of the current client and the default directory $prefix = $this->client->getConfig('command.prefix'); if (!$prefix) { // The prefix can be specified in a factory method and is cached $prefix = implode('\\', array_slice(explode('\\', get_class($this->client)), 0, -1)) . '\\Command\\'; $this->client->getConfig()->set('command.prefix', $prefix); } $class = $prefix . str_replace(' ', '\\', ucwords(str_replace('.', ' ', $this->inflector->camel($name)))); // Create the concrete command if it exists if (class_exists($class)) { return new $class($args); } } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAliasFactory.phpFile1.09 KB Rename | Delete | EditCompositeFactory.phpFile4.03 KB Rename | Delete | EditConcreteClassFactory.phpFile1.57 KB Rename | Delete | EditFactoryInterface.phpFile426.00 B Rename | Delete | EditMapFactory.phpFile639.00 B Rename | Delete | EditServiceDescriptionFactory.phpFile2.11 KB Rename | Delete | Edit