PHP 8.2.30
Preview: HttpAsyncClientDiscovery.php Size: 869 B
/home/byroehnu/easetack.com/vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php

<?php

namespace Http\Discovery;

use Http\Client\HttpAsyncClient;
use Http\Discovery\Exception\DiscoveryFailedException;

/**
 * Finds an HTTP Asynchronous Client.
 *
 * @author Joel Wurtz <joel.wurtz@gmail.com>
 */
final class HttpAsyncClientDiscovery extends ClassDiscovery
{
    /**
     * Finds an HTTP Async Client.
     *
     * @return HttpAsyncClient
     *
     * @throws Exception\NotFoundException
     */
    public static function find()
    {
        try {
            $asyncClient = static::findOneByType(HttpAsyncClient::class);
        } catch (DiscoveryFailedException $e) {
            throw new NotFoundException('No HTTPlug async clients found. Make sure to install a package providing "php-http/async-client-implementation". Example: "php-http/guzzle6-adapter".', 0, $e);
        }

        return static::instantiateClass($asyncClient);
    }
}

Directory Contents

Dirs: 3 × Files: 12

Name Size Perms Modified Actions
Composer DIR
- drwxrwxrwx 2025-05-16 16:14:47
Edit Download
Exception DIR
- drwxrwxrwx 2025-05-16 16:14:47
Edit Download
Strategy DIR
- drwxrwxrwx 2025-05-16 16:14:47
Edit Download
6.81 KB lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
204 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
869 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
904 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
1.08 KB lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
430 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
11.37 KB lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
3.77 KB lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
2.17 KB lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
916 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
960 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download
902 B lrw-rw-rw- 2024-10-02 11:20:13
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).