File: http_client.xml

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (33 lines) | stat: -rw-r--r-- 1,814 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <service id="http_client" class="Symfony\Contracts\HttpClient\HttpClientInterface">
            <tag name="monolog.logger" channel="http_client" />
            <tag name="http_client.client" />
            <factory class="Symfony\Component\HttpClient\HttpClient" method="create" />
            <argument type="collection" /> <!-- default options -->
            <argument /> <!-- max host connections -->
            <call method="setLogger">
                <argument type="service" id="logger" on-invalid="ignore" />
            </call>
        </service>
        <service id="Symfony\Contracts\HttpClient\HttpClientInterface" alias="http_client" />

        <service id="psr18.http_client" class="Symfony\Component\HttpClient\Psr18Client">
            <argument type="service" id="http_client" />
            <argument type="service" id="Psr\Http\Message\ResponseFactoryInterface" on-invalid="ignore" />
            <argument type="service" id="Psr\Http\Message\StreamFactoryInterface" on-invalid="ignore" />
        </service>
        <service id="Psr\Http\Client\ClientInterface" alias="psr18.http_client" />

        <service id="Http\Client\HttpClient" class="Symfony\Component\HttpClient\HttplugClient">
            <argument type="service" id="http_client" />
            <argument type="service" id="Psr\Http\Message\ResponseFactoryInterface" on-invalid="ignore" />
            <argument type="service" id="Psr\Http\Message\StreamFactoryInterface" on-invalid="ignore" />
        </service>
    </services>
</container>