%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Util/
Upload File :
Create Path :
Current File : /www/loslex/demo/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Util/WorksWithUris.php

<?php

namespace Sentry\Laravel\Util;

use GuzzleHttp\Psr7\Uri;
use Psr\Http\Message\UriInterface;

trait WorksWithUris
{
    /**
     * Construct a full URI.
     *
     * @param string $url
     *
     * @return UriInterface
     */
    protected function getFullUri(string $url): UriInterface
    {
        return new Uri($url);
    }

    /**
     * Construct a partial URI, excluding the authority, query and fragment parts.
     *
     * @param UriInterface $uri
     *
     * @return string
     */
    protected function getPartialUri(UriInterface $uri): string
    {
        return (string) Uri::fromParts([
            'scheme' => $uri->getScheme(),
            'host' => $uri->getHost(),
            'port' => $uri->getPort(),
            'path' => $uri->getPath(),
        ]);
    }
}

Zerion Mini Shell 1.0