Skip to content

Commit

Permalink
Updated for CssSelectorConverter class name
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Oct 25, 2015
1 parent 9392f80 commit df4fc7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ The CssSelector Component
~~~~~~~~~~~~~~~~~~~~~~~~~

The component's only goal is to convert CSS selectors to their XPath
equivalents, using :method:`Converter::toXPath() <Symfony\\Component\\CssSelector\\Converter::toXPath>`
equivalents, using :method:`Symfony\\Component\\CssSelector\\CssSelectorConverter::toXPath`

.. code-block:: php
use Symfony\Component\CssSelector\Converter;
use Symfony\Component\CssSelector\CssSelectorConverter;
$converter = new Converter();
$converter = new CssSelectorConverter();
var_dump($converter->toXPath('div.item > h4 > a'));
This gives the following output:
Expand Down

0 comments on commit df4fc7e

Please sign in to comment.