setConfig($config) ->setConfigDefaults(array( Options::VERSION => self::LATEST_API_VERSION, Options::SERVICE_DESCRIPTION => __DIR__ . '/Resources/importexport-%s.php' )) ->build(); // If the Symfony YAML component is installed, add a listener that will convert arrays to proper YAML in when // specifying the "Manifest" parameter of the "CreateJob" operation if (class_exists('Symfony\Component\Yaml\Yaml')) { $client->addSubscriber(new JobManifestListener()); } return $client; } }