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

  • ServiceBuilder
  • ServiceBuilderLoader

Interfaces

  • ServiceBuilderInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: 
 3: namespace Guzzle\Service\Builder;
 4: 
 5: use Guzzle\Common\FromConfigInterface;
 6: use Guzzle\Service\Exception\ServiceNotFoundException;
 7: 
 8: /**
 9:  * Service builder to generate service builders and service clients from configuration settings
10:  */
11: interface ServiceBuilderInterface
12: {
13:     /**
14:      * Get a service using a registered builder
15:      *
16:      * @param string     $name      Name of the registered client to retrieve
17:      * @param bool|array $throwAway Set to TRUE to not store the client for later retrieval from the ServiceBuilder.
18:      *                              If an array is specified, that data will overwrite the configured params
19:      *
20:      * @return FromConfigInterface
21:      * @throws ServiceNotFoundException when a client cannot be found by name
22:      */
23:     public function get($name, $throwAway = false);
24: 
25:     /**
26:      * Register a service by name with the service builder
27:      *
28:      * @param string $key     Name of the client to register
29:      * @param mixed  $service Service to register
30:      *
31:      * @return ServiceBuilderInterface
32:      */
33:     public function set($key, $service);
34: }
35: 
php-coveralls API documentation generated by ApiGen 2.8.0