Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • AbstractConfigLoader
  • CachingConfigLoader
  • Client

Interfaces

  • ClientInterface
  • ConfigLoaderInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class AbstractConfigLoader

Abstract config loader

Guzzle\Service\AbstractConfigLoader implements Guzzle\Service\ConfigLoaderInterface

Direct known subclasses

Guzzle\Service\Builder\ServiceBuilderLoader, Guzzle\Service\Description\ServiceDescriptionLoader
Abstract
Namespace: Guzzle\Service
Located at Guzzle/Service/AbstractConfigLoader.php
Methods summary
public mixed
# load( mixed $config, array $options = array() )

Loads configuration data and returns an array of the loaded result

Loads configuration data and returns an array of the loaded result

Parameters

$config
mixed
$config Data to load (filename or array of data)
$options
array
$options Array of options to use when loading

Returns

mixed

Implementation of

Guzzle\Service\ConfigLoaderInterface::load()
public Guzzle\Service\AbstractConfigLoader
# addAlias( string $filename, string $alias )

Add an include alias to the loader

Add an include alias to the loader

Parameters

$filename
string
$filename Filename to alias (e.g. _foo)
$alias
string
$alias Actual file to use (e.g. /path/to/foo.json)

Returns

Guzzle\Service\AbstractConfigLoader
public Guzzle\Service\AbstractConfigLoader
# removeAlias( string $alias )

Remove an alias from the loader

Remove an alias from the loader

Parameters

$alias
string
$alias Alias to remove

Returns

Guzzle\Service\AbstractConfigLoader
abstract protected mixed
# build( array $config, array $options )

Perform the parsing of a config file and create the end result

Perform the parsing of a config file and create the end result

Parameters

$config
array
$config Configuration data
$options
array
$options Options to use when building

Returns

mixed
protected array
# loadFile( string $filename )

Load a configuration file (can load JSON or PHP files that return an array when included)

Load a configuration file (can load JSON or PHP files that return an array when included)

Parameters

$filename
string
$filename File to load

Returns

array

Throws

Guzzle\Common\Exception\InvalidArgumentException
Guzzle\Common\Exception\RuntimeException
when the JSON cannot be parsed
protected array
# mergeIncludes( array & $config, string $basePath = null )

Merges in all include files

Merges in all include files

Parameters

$config
array
$config Config data that contains includes
$basePath
string
$basePath Base path to use when a relative path is encountered

Returns

array
Returns the merged and included data
protected array
# mergeData( array $a, array $b )

Default implementation for merging two arrays of data (uses array_merge_recursive)

Default implementation for merging two arrays of data (uses array_merge_recursive)

Parameters

$a
array
$a Original data
$b
array
$b Data to merge into the original and overwrite existing values

Returns

array
Properties summary
protected array $aliases array()
#

Array of aliases for actual filenames

Array of aliases for actual filenames

protected array $loadedFiles array()
#

Hash of previously loaded filenames

Hash of previously loaded filenames

php-coveralls API documentation generated by ApiGen 2.8.0