Skip to content

Commit 905d1fc

Browse files
committed
minor. refs #13054
1 parent be8b2b7 commit 905d1fc

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

components/dom_crawler.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -620,20 +620,22 @@ the whole form or specific field(s)::
620620
$form->disableValidation();
621621
$form['country']->select('Invalid value');
622622

623-
Resolving URI
624-
~~~~~~~~~~~~~
623+
Resolving a URI
624+
~~~~~~~~~~~~~~~
625625

626626
.. versionadded:: 5.1
627627

628-
The `UriResolver` helper was added in Symfony 5.1.
628+
The :class:`Symfony\\Component\\DomCrawler\\UriResolver` helper class was added in Symfony 5.1.
629629

630630
The :class:`Symfony\\Component\\DomCrawler\\UriResolver` class takes an URI
631631
(relative, absolute, fragment, etc.) and turns it into an absolute URI against
632-
another given base URI.::
632+
another given base URI::
633+
634+
use Symfony\Component\DomCrawler\UriResolver;
633635

634-
UriResolver::resolve('/foo', 'http://localhost/bar/foo/'); // => 'http://localhost/foo'
635-
UriResolver::resolve('?a=b', 'http://localhost/bar#foo'); // => 'http://localhost/bar?a=b'
636-
UriResolver::resolve('../../', 'http://localhost/'); // => http://localhost/'
636+
UriResolver::resolve('/foo', 'http://localhost/bar/foo/'); // http://localhost/foo
637+
UriResolver::resolve('?a=b', 'http://localhost/bar#foo'); // http://localhost/bar?a=b
638+
UriResolver::resolve('../../', 'http://localhost/'); // http://localhost/
637639

638640
Learn more
639641
----------

0 commit comments

Comments
 (0)