Class Guzzle\Service\Description\ServiceDescriptionLoader

InheritanceGuzzle\Service\Description\ServiceDescriptionLoader » Guzzle\Service\AbstractConfigLoader
ImplementsGuzzle\Service\ConfigLoaderInterface

Loader for service descriptions

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$aliases array Array of aliases for actual filenames Guzzle\Service\AbstractConfigLoader
$jsonErrors array JSON error code mappings Guzzle\Service\AbstractConfigLoader
$loadedFiles array Hash of previously loaded filenames Guzzle\Service\AbstractConfigLoader

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addAlias() Add an include alias to the loader Guzzle\Service\AbstractConfigLoader
load() Guzzle\Service\AbstractConfigLoader
removeAlias() Remove an alias from the loader Guzzle\Service\AbstractConfigLoader

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
build() Guzzle\Service\Description\ServiceDescriptionLoader
loadFile() Load a configuration file (can load JSON or PHP files that return an array when included) Guzzle\Service\AbstractConfigLoader
mergeData() Default implementation for merging two arrays of data (uses array_merge_recursive) Guzzle\Service\AbstractConfigLoader
mergeIncludes() Merges in all include files Guzzle\Service\AbstractConfigLoader
resolveExtension() Guzzle\Service\Description\ServiceDescriptionLoader

Method Details

build() protected method

protected void build ( $config, array $options )
$config
$options
resolveExtension() protected method

protected void resolveExtension ( $name, array &$op, array &$operations )
$name string

Name of the operation

$op array

Operation value array

$operations array

Currently loaded operations

throws Guzzle\Service\Exception\DescriptionBuilderException

when extending a non-existent operation