Skip to content

[Components][DomCrawler] Remove protected method getRawUri() #1837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,16 @@ instance with just the selected link(s). Calling ``link()`` gives us a special
The :class:`Symfony\\Component\\DomCrawler\\Link` object has several useful
methods to get more information about the selected link itself::

// return the raw href value
$href = $link->getRawUri();

// return the proper URI that can be used to make another request
$uri = $link->getUri();

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

The ``getUri()`` is especially useful as it cleans the ``href`` value and
transforms it into how it should really be processed. For example, for a
link with ``href="#foo"``, this would return the full URI of the current
page suffixed with ``#foo``. The return from ``getUri()`` is always a full
URI that you can act on.

Forms
.....
Expand Down