• File: GuzzleUriFactory.php
  • Full Path: /var/www/crm_set/application/vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php
  • Date Modified: 09/21/2026 4:19 AM
  • File size: 592 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Http\Message\UriFactory;

use function GuzzleHttp\Psr7\uri_for;
use GuzzleHttp\Psr7\Utils;
use Http\Message\UriFactory;

/**
 * Creates Guzzle URI.
 *
 * @author David de Boer <david@ddeboer.nl>
 *
 * @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
 */
final class GuzzleUriFactory implements UriFactory
{
    /**
     * {@inheritdoc}
     */
    public function createUri($uri)
    {
        if (class_exists(Utils::class)) {
            return Utils::uriFor($uri);
        }

        return uri_for($uri);
    }
}