Skip to content

Commit 3330fd5

Browse files
lyrixxOskarStark
andauthored
Apply suggestions from code review
Co-Authored-By: Oskar Stark <[email protected]>
1 parent d3f0ed5 commit 3330fd5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/dom_crawler.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,11 @@ Expanding URI
625625

626626
.. versionadded:: 5.1
627627

628-
The UriExpander helper was added in Symfony 5.1.
628+
The `UriExpander` helper was added in Symfony 5.1.
629629

630630
The :class:`Symfony\\Component\\DomCrawler\\UriExpander` class provides method
631631
to expand a relative link::
632632

633-
UriExpander::expand($uri, $currentUri);
634-
// For example:
635633
UriExpander::expand('/foo', 'http://localhost/bar/foo/'); // => 'http://localhost/foo'
636634
UriExpander::expand('?a=b', 'http://localhost/bar#foo'; // => 'http://localhost/bar?a=b'
637635
UriExpander::expand('../../', 'http://localhost/'; // => http://localhost/'

0 commit comments

Comments
 (0)