k911/uri-builder

View on GitHub
src/Adapter/UriParserAdapter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare(strict_types=1);

namespace K911\UriBuilder\Adapter;

use K911\UriBuilder\Contracts\UriParserInterface;
use League\Uri\Parser;

class UriParserAdapter extends Parser implements UriParserInterface
{
    /**
     * {@inheritdoc}
     *
     * @throws \League\Uri\Exception
     */
    public function parse(string $uri): array
    {
        return $this->__invoke($uri);
    }
}