Skip to content

Commit d8386dd

Browse files
committed
Merge pull request #1837 from ajessu/patch-2
[Components][DomCrawler] Remove protected method getRawUri()
2 parents 537ddb3 + 5167f9e commit d8386dd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

components/dom_crawler.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,16 @@ instance with just the selected link(s). Calling ``link()`` gives us a special
192192
The :class:`Symfony\\Component\\DomCrawler\\Link` object has several useful
193193
methods to get more information about the selected link itself::
194194

195-
// return the raw href value
196-
$href = $link->getRawUri();
197-
198195
// return the proper URI that can be used to make another request
199196
$uri = $link->getUri();
200197

201-
The ``getUri()`` is especially useful as it cleans the ``href`` value and
202-
transforms it into how it should really be processed. For example, for a
203-
link with ``href="#foo"``, this would return the full URI of the current
204-
page suffixed with ``#foo``. The return from ``getUri()`` is always a full
205-
URI that you can act on.
198+
.. note::
199+
200+
The ``getUri()`` is especially useful as it cleans the ``href`` value and
201+
transforms it into how it should really be processed. For example, for a
202+
link with ``href="#foo"``, this would return the full URI of the current
203+
page suffixed with ``#foo``. The return from ``getUri()`` is always a full
204+
URI that you can act on.
206205

207206
Forms
208207
.....

0 commit comments

Comments
 (0)